/* ===== Cookies & Courtesies — Auth Page (Registration & Login) ===== */
/* Elementor-proof: ALL rules use !important */

.ccgs-auth {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: calc(100vh - 200px) !important;
    padding: 40px 20px !important;
    background: linear-gradient(135deg, #F9F4EF 0%, #FFF0F0 50%, #F9F4EF 100%) !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.ccgs-auth__card {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    max-width: 520px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Header */
.ccgs-auth__header {
    text-align: center !important;
    padding: 36px 32px 24px !important;
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%) !important;
    color: #FFFFFF !important;
}

.ccgs-auth__logo {
    font-size: 48px !important;
    margin-bottom: 12px !important;
    display: block !important;
}

.ccgs-auth__title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    color: #FFFFFF !important;
    font-family: 'Playfair Display', serif !important;
}

.ccgs-auth__subtitle {
    font-size: 13px !important;
    opacity: 0.9 !important;
    margin: 0 !important;
    color: #FFFFFF !important;
}

/* Tabs */
.ccgs-auth__tabs {
    display: flex !important;
    border-bottom: 2px solid #F0E8E0 !important;
}

.ccgs-auth__tab {
    flex: 1 !important;
    text-align: center !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #999999 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
}

.ccgs-auth__tab:hover {
    color: #D32F2F !important;
}

.ccgs-auth__tab.active {
    color: #D32F2F !important;
    border-bottom-color: #D32F2F !important;
}

/* Messages */
.ccgs-auth__success {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 24px !important;
    background: #E8F5E9 !important;
    color: #2E7D32 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.ccgs-auth__success svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0 !important;
    stroke: #2E7D32 !important;
}

.ccgs-auth__errors {
    padding: 14px 24px !important;
    background: #FFEBEE !important;
    color: #C62828 !important;
    font-size: 13px !important;
}

.ccgs-auth__errors p {
    margin: 4px 0 !important;
}

/* Form */
.ccgs-auth__form {
    padding: 28px 32px !important;
}

.ccgs-auth__field {
    margin-bottom: 18px !important;
}

.ccgs-auth__field label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #2D2D2D !important;
    margin-bottom: 6px !important;
}

.ccgs-auth__field label .required {
    color: #D32F2F !important;
}

.ccgs-auth__optional {
    font-weight: 400 !important;
    color: #999999 !important;
    font-size: 12px !important;
}

.ccgs-auth__input-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.ccgs-auth__input-icon {
    position: absolute !important;
    left: 14px !important;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    color: #BBBBBB !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.ccgs-auth__input-wrap input {
    width: 100% !important;
    padding: 12px 14px 12px 42px !important;
    border: 1.5px solid #E0D6CE !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-family: 'Poppins', sans-serif !important;
    color: #2D2D2D !important;
    background: #FFFFFF !important;
    transition: all 0.2s !important;
    outline: none !important;
}

.ccgs-auth__input-wrap input:focus {
    border-color: #D32F2F !important;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.1) !important;
}

.ccgs-auth__toggle-pw {
    position: absolute !important;
    right: 12px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    color: #BBBBBB !important;
    transition: color 0.2s !important;
}

.ccgs-auth__toggle-pw:hover {
    color: #D32F2F !important;
}

.ccgs-auth__toggle-pw svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

/* Row (side-by-side fields) */
.ccgs-auth__row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

/* Account Type Cards */
.ccgs-auth__account-types {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}

.ccgs-auth__type-option {
    cursor: pointer !important;
    margin: 0 !important;
}

.ccgs-auth__type-option input {
    display: none !important;
}

.ccgs-auth__type-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 16px 8px !important;
    border: 2px solid #E0D6CE !important;
    border-radius: 12px !important;
    text-align: center !important;
    transition: all 0.2s !important;
    background: #FFFFFF !important;
}

.ccgs-auth__type-card:hover {
    border-color: #FFCDD2 !important;
    background: #FFF8F8 !important;
}

.ccgs-auth__type-option input:checked + .ccgs-auth__type-card {
    border-color: #D32F2F !important;
    background: #FFEBEE !important;
    box-shadow: 0 2px 12px rgba(211,47,47,0.15) !important;
}

.ccgs-auth__type-icon {
    font-size: 24px !important;
    display: block !important;
}

.ccgs-auth__type-card strong {
    font-size: 13px !important;
    color: #2D2D2D !important;
}

.ccgs-auth__type-card small {
    font-size: 10px !important;
    color: #999999 !important;
    line-height: 1.3 !important;
}

/* Options row */
.ccgs-auth__options {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.ccgs-auth__checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: #555555 !important;
}

.ccgs-auth__checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #D32F2F !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.ccgs-auth__forgot {
    font-size: 13px !important;
    color: #D32F2F !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.ccgs-auth__forgot:hover {
    text-decoration: underline !important;
}

/* Submit */
.ccgs-auth__submit {
    width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    margin-top: 4px !important;
}

.ccgs-auth__submit svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

/* Switch link */
.ccgs-auth__switch {
    text-align: center !important;
    font-size: 13px !important;
    color: #777777 !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

.ccgs-auth__switch a {
    color: #D32F2F !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.ccgs-auth__switch a:hover {
    text-decoration: underline !important;
}

/* Password Strength */
.ccgs-auth__pw-strength {
    min-height: 4px !important;
    border-radius: 4px !important;
    margin-top: 6px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 2px 0 !important;
    transition: all 0.3s !important;
    text-align: right !important;
}

/* Terms */
.ccgs-auth__terms {
    margin-bottom: 20px !important;
}

.ccgs-auth__terms a {
    color: #D32F2F !important;
    text-decoration: none !important;
}

.ccgs-auth__terms a:hover {
    text-decoration: underline !important;
}

/* Features bar */
.ccgs-auth__features {
    display: flex !important;
    justify-content: center !important;
    gap: 24px !important;
    padding: 20px 32px !important;
    background: #F9F4EF !important;
    border-top: 1px solid #F0E8E0 !important;
}

.ccgs-auth__feature {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    color: #777777 !important;
    font-weight: 500 !important;
}

.ccgs-auth__feature-icon {
    font-size: 16px !important;
}

/* Responsive */
@media (max-width: 560px) {
    .ccgs-auth__card {
        max-width: 100% !important;
    }
    .ccgs-auth__form {
        padding: 24px 20px !important;
    }
    .ccgs-auth__row {
        grid-template-columns: 1fr !important;
    }
    .ccgs-auth__account-types {
        grid-template-columns: 1fr !important;
    }
    .ccgs-auth__features {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
}
