/**
 * ==============================================================================
 * C2CReview Contra-Inspired Authentication Pages Design System
 * ==============================================================================
 * Matches the Contra login & sign-up modal/card interface exactly:
 * - Two-column modern white card with 24px border radius
 * - Charcoal Google button with multicolored SVG logo
 * - Centered "OR" divider
 * - 50px clean inputs with 12px corner radii
 * - Charcoal pill submit button (#252936)
 * - 3D crystal prism sculpture visual artwork
 * - "TRUSTED BY 25,000+ AGENCIES AND 100,000+ CLIENTS" divider
 * - Real verified agency logos grid
 * ==============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.contra_auth_section {
    padding: 60px 20px 80px 20px;
    background-color: #F7F8FA;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contra_auth_card {
    background: #FFFFFF;
    border: 1px solid #E2E5EA;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(23, 25, 35, 0.05);
    display: flex;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
}

/* Left Column: Form Area */
.contra_auth_left {
    flex: 1;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
}

.contra_auth_title {
    font-family: 'Inter', sans-serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #171923 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.25 !important;
    margin: 0 0 28px 0 !important;
}

.contra_auth_title.has_subtitle {
    margin: 0 0 10px 0 !important;
}

.contra_auth_subtitle {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #718096 !important;
    line-height: 1.55 !important;
    margin: 0 0 26px 0 !important;
}

.contra_auth_icon_badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #171923;
    margin-bottom: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.contra_back_link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #64748B !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
}

.contra_back_link:hover {
    color: #0F172A !important;
    transform: translateX(-3px) !important;
    text-decoration: none !important;
}

.contra_btn_google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    background-color: #252936;
    color: #FFFFFF !important;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 6px rgba(37, 41, 54, 0.12);
}

.contra_btn_google:hover {
    background-color: #363B4A;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 41, 54, 0.18);
}

.contra_btn_google svg {
    flex-shrink: 0;
}

/* "OR" Divider */
.contra_or_divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 20px 0;
}

.contra_or_divider::before,
.contra_or_divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E3E6EB;
}

.contra_or_divider span {
    padding: 0 14px;
    color: #8A93A3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Form Groups & Inputs */
.contra_form_group {
    margin-bottom: 18px;
    position: relative;
}

.contra_form_group label {
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #4A5568 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.contra_input {
    width: 100% !important;
    height: 50px !important;
    border: 1px solid #D1D6DF !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    color: #171923 !important;
    background-color: #FFFFFF !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-sizing: border-box !important;
}

.contra_input:focus {
    border-color: #252936 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 41, 54, 0.12) !important;
}

.contra_input::placeholder {
    color: #8A93A3 !important;
    font-size: 14px !important;
}

/* Password Eye Toggle */
.contra_password_wrap {
    position: relative;
    width: 100%;
}

.contra_password_wrap .contra_input {
    padding-right: 48px !important;
}

.contra_password_wrap .toggle_password_icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8A93A3;
    cursor: pointer;
    font-size: 15px;
    padding: 6px;
    transition: color 0.15s ease;
}

.contra_password_wrap .toggle_password_icon:hover {
    color: #171923;
}

/* Options Bar (Remember & Forgot) */
.contra_options_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 20px 0;
    font-size: 13.5px;
}

.contra_checkbox_label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4A5568;
    cursor: pointer;
    margin: 0;
    user-select: none;
    font-weight: 500;
}

.contra_checkbox_label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #252936;
    cursor: pointer;
}

.contra_forgot_link {
    color: #687181;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.contra_forgot_link:hover {
    color: #171923;
    text-decoration: underline;
}

/* Submit Action Button (Outline Pill Button matching reference) */
.contra_btn_submit {
    width: 100%;
    height: 50px;
    background-color: #FFFFFF;
    color: #171923 !important;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid #252936;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contra_btn_submit:hover {
    background-color: #F8FAFC;
    border-color: #0F131C;
    color: #0F131C !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 41, 54, 0.08);
}

.contra_btn_submit:active {
    background-color: #F1F5F9;
    transform: translateY(0);
}

/* Footer Link (New to Contra? Sign up) */
.contra_auth_footer_link {
    margin-top: 26px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #687181;
}

.contra_auth_footer_link a {
    color: #171923;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.contra_auth_footer_link a:hover {
    color: #6257D9;
}

/* Modern Alerts System */
.contra_alert,
.contra_auth_left .alert {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 13px 16px !important;
    border-radius: 14px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 22px !important;
    box-sizing: border-box !important;
    animation: contraAlertSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease !important;
    overflow: hidden !important;
}

@keyframes contraAlertSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Error / Danger Alert */
.contra_alert_error,
.contra_auth_left .alert-danger {
    background-color: #FEF2F2 !important;
    border: 1px solid #FEE2E2 !important;
    border-left: 3.5px solid #EF4444 !important;
    color: #991B1B !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.contra_alert_error .contra_alert_icon {
    background-color: #FEE2E2 !important;
    color: #EF4444 !important;
}

/* Success Alert */
.contra_alert_success,
.contra_auth_left .alert-success {
    background-color: #F0FDF4 !important;
    border: 1px solid #DCFCE7 !important;
    border-left: 3.5px solid #10B981 !important;
    color: #14532D !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.contra_alert_success .contra_alert_icon {
    background-color: #DCFCE7 !important;
    color: #10B981 !important;
}

/* Warning Alert */
.contra_alert_warning,
.contra_auth_left .alert-warning {
    background-color: #FFFBEB !important;
    border: 1px solid #FEF3C7 !important;
    border-left: 3.5px solid #F59E0B !important;
    color: #78350F !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.contra_alert_warning .contra_alert_icon {
    background-color: #FEF3C7 !important;
    color: #F59E0B !important;
}

/* Info Alert */
.contra_alert_info,
.contra_auth_left .alert-info {
    background-color: #EFF6FF !important;
    border: 1px solid #DBEAFE !important;
    border-left: 3.5px solid #3B82F6 !important;
    color: #1E3A8A !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.contra_alert_info .contra_alert_icon {
    background-color: #DBEAFE !important;
    color: #3B82F6 !important;
}

/* Alert Icon Container */
.contra_alert_icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

.contra_alert_icon svg {
    display: block !important;
    width: 15px !important;
    height: 15px !important;
}

/* Alert Content */
.contra_alert_content {
    flex: 1 1 auto !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    padding-top: 2px !important;
    word-break: break-word !important;
}

.contra_alert_content p:last-child {
    margin-bottom: 0 !important;
}

/* Close Dismiss Button */
.contra_alert_close {
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    margin: -2px -4px 0 auto !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
    opacity: 0.45 !important;
    transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.15s ease !important;
    outline: none !important;
    flex-shrink: 0 !important;
}

.contra_alert_close:hover {
    opacity: 0.9 !important;
    background-color: rgba(0, 0, 0, 0.06) !important;
    transform: scale(1.05) !important;
}

.contra_alert_close:active {
    transform: scale(0.95) !important;
}

.contra_alert_close svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
}

/* Fallback for legacy plain markup without .contra_alert_icon */
.contra_auth_left .alert:not(:has(.contra_alert_icon)) {
    display: flex !important;
    align-items: center !important;
}

.contra_auth_left .alert-danger:not(:has(.contra_alert_icon))::before {
    content: '' !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-right: 4px !important;
    display: inline-block !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23EF4444'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

.contra_auth_left .alert-success:not(:has(.contra_alert_icon))::before {
    content: '' !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-right: 4px !important;
    display: inline-block !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* Right Column: Feedback Carousel & Real Agency Logos */
.contra_auth_right {
    flex: 1;
    background: #FAFBFD;
    border-left: 1px solid #F0F2F5;
    padding: 44px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

/* Client Feedback Quote & Carousel */
.contra_feedback_section {
    width: 100%;
    padding: 6px 4px 16px 4px;
    display: flex;
    flex-direction: column;
    min-height: 235px;
    position: relative;
}

.contra_feedback_quote_icon {
    margin-bottom: 12px;
    line-height: 1;
}

.contra_feedback_carousel {
    position: relative;
    min-height: 160px;
}

.contra_feedback_item {
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.contra_feedback_item.active {
    display: block;
    opacity: 1;
    animation: contraFeedbackFade 0.35s ease;
}

@keyframes contraFeedbackFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contra_feedback_text {
    font-family: 'Inter', sans-serif !important;
    font-size: 18.5px !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
    color: #2D3748 !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.2px;
}

.contra_feedback_author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contra_feedback_avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contra_feedback_meta {
    display: flex;
    flex-direction: column;
}

.contra_feedback_name {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #171923 !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

.contra_feedback_role {
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: #718096 !important;
    margin: 3px 0 0 0 !important;
    line-height: 1.2 !important;
}

/* Indicators (Dash lines at bottom right matching reference) */
.contra_feedback_indicators {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
}

.contra_feedback_bar {
    width: 14px;
    height: 2.5px;
    border-radius: 2px;
    background-color: #E2E8F0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.contra_feedback_bar:hover {
    background-color: #CBD5E1;
}

.contra_feedback_bar.active {
    width: 24px;
    background-color: #252936;
}

.contra_trust_strip {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0 20px 0;
}

.contra_trust_strip::before,
.contra_trust_strip::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E3E6EB;
}

.contra_trust_strip span {
    padding: 0 14px;
    color: #8A93A3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Platform Value Highlights (Replacing Logos) */
.contra_auth_value_grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.contra_auth_value_card {
    background: #FFFFFF;
    border: 1px solid #EAECF0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.contra_auth_value_card:hover {
    border-color: #D0D5DD;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(16, 24, 40, 0.06);
}

.contra_value_icon_wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contra_value_content {
    display: flex;
    flex-direction: column;
}

.contra_value_title {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #171923 !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.25 !important;
}

.contra_value_desc {
    font-family: 'Inter', sans-serif !important;
    font-size: 11.5px !important;
    color: #64748B !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* ==========================================================================
   Account Differentiation & Role Switcher System
   ========================================================================== */
.contra_role_toggle {
    display: flex;
    align-items: center;
    background: #F1F3F7;
    padding: 4px;
    border-radius: 9999px;
    margin-bottom: 24px;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #E5E7EB;
}

.contra_role_tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
}

.contra_role_tab:hover {
    color: #171923;
    background: rgba(255, 255, 255, 0.6);
}

.contra_role_tab.active {
    background: #FFFFFF;
    color: #171923;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.contra_role_tab svg {
    flex-shrink: 0;
    display: block;
}

.contra_role_tab.active.client_tab svg {
    color: #04A88C;
}

.contra_role_tab.active.agency_tab svg {
    color: #4F46E5;
}

/* Role Badges */
.contra_auth_badge_row {
    margin-bottom: 12px;
}

.contra_role_badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-sizing: border-box;
}

.contra_badge_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* Client Badge (Teal theme matching C2C brand) */
.contra_badge_client {
    background-color: #E6FFFA;
    color: #048C74;
    border: 1px solid #B2F5EA;
}

.contra_badge_client .contra_badge_dot {
    background-color: #04C0A0;
    box-shadow: 0 0 0 2px rgba(4, 192, 160, 0.25);
}

/* Agency Badge (Indigo / Obsidian theme) */
.contra_badge_agency {
    background-color: #EEF2FF;
    color: #4338CA;
    border: 1px solid #C7D2FE;
}

.contra_badge_agency .contra_badge_dot {
    background-color: #6366F1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

/* Role Switch Hint Footer */
.contra_role_switch_hint {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #E2E8F0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #718096;
    text-align: center;
}

.contra_role_switch_hint a {
    color: #171923;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
    margin-left: 3px;
}

.contra_role_switch_hint a:hover {
    color: #04A88C;
    text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .contra_auth_right {
        display: none !important;
    }

    .contra_auth_card {
        max-width: 480px;
    }

    .contra_auth_left {
        padding: 40px 28px;
    }

    .contra_auth_title {
        font-size: 26px !important;
        margin-bottom: 22px !important;
    }
}

@media (max-width: 480px) {
    .contra_auth_section {
        padding: 30px 14px 60px 14px;
    }

    .contra_auth_left {
        padding: 32px 18px;
    }

    .contra_auth_title {
        font-size: 24px !important;
    }
}