/* auth.css */
:root {
    --primary-color: #DB2A5B;
    --text-dark: #222222;
    --text-gray: #666666;
    --bg-light: #FDF2F5;
}

/* PC එකේදී Header එක සැඟවීම (Split screen එකක් ලෙස තබා ගැනීමට) */
@media screen and (min-width: 993px) {
    .main-header {
        display: none !important;
    }
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #FFFFFF;
}

/* --- Left Side (Banner) --- */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #FFF5F7 0%, #FDE4EB 100%);
    padding: 40px 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-logo-top {
    position: absolute;
    top: 40px;
    left: 60px;
    height: 35px;
}

.auth-left-content {
    max-width: 450px;
    z-index: 2;
    margin-top: -50px;
}

.auth-left h1 {
    font-size: 2.8rem;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.auth-left h1 span {
    color: var(--primary-color);
}

.auth-left p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-list li i {
    color: var(--primary-color);
    background: #FFD1DC;
    padding: 6px;
    border-radius: 50%;
    font-size: 11px;
    margin-right: 15px;
}

.auth-social-proof {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-badge {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-gray);
}

/* SVG විශාල වීම නතර කිරීමට විශේෂ කේතය */
.auth-badge i, .auth-badge svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.auth-badge strong {
    color: var(--text-dark);
    margin-right: 5px;
}

/* --- අලංකාර Phone Mockup CSS Frame --- */
.phone-mockup-wrapper {
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 280px;
    height: 580px;
    background: #FFFFFF;
    border: 12px solid #1a1a1a;
    border-radius: 40px;
    box-shadow: -20px 30px 50px rgba(0,0,0,0.15);
    z-index: 3;
    overflow: hidden;
}

.phone-mockup-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 4;
}

.phone-mockup-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* --- Right Side (Form) --- */
.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    position: relative;
    padding: 40px;
}

.need-help-pc {
    position: absolute;
    top: 40px;
    right: 40px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.need-help-pc i {
    color: #25D366;
    font-size: 18px;
}

.auth-form-container {
    margin: auto;
    width: 100%;
    max-width: 400px;
}

.auth-form-container h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-form-container h2 span {
    color: var(--primary-color);
}

.auth-form-container > p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.5;
}

.auth-card {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 15px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-group label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i.left-icon {
    position: absolute;
    left: 15px;
    color: #AAAAAA;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 40px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
}

.input-wrapper i.right-icon {
    position: absolute;
    right: 15px;
    color: #AAAAAA;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 15px;
}

.submit-btn:hover {
    background-color: #b9204a;
    box-shadow: 0 4px 10px rgba(219, 42, 91, 0.3);
}

.auth-bottom-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-gray);
}

.auth-bottom-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.mobile-need-help-banner, .mobile-auth-extras {
    display: none;
}

.error-msg {
    background-color: #FEE2E2;
    color: #DC2626;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* --- Mobile Responsive Rules --- */
@media screen and (max-width: 992px) {
    .auth-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    .auth-left {
        display: none; /* Mobile වලදී Banner සැඟවීම */
    }
    
    .need-help-pc {
        display: none; /* PC button එක සැඟවීම */
    }

    /* Mobile Header යටින් පෙන්වන Need Help Banner එක */
    .mobile-need-help-banner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #FFF5F7;
        padding: 12px 20px;
        border-bottom: 1px solid #FDE4EB;
    }
    
    .mobile-need-help-banner span {
        font-size: 13px;
        color: var(--text-gray);
    }
    
    .mobile-need-help-banner a {
        text-decoration: none;
        color: var(--primary-color);
        font-size: 13px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .auth-right {
        padding: 40px 20px;
        justify-content: flex-start;
    }

    .auth-form-container h2 {
        font-size: 1.8rem;
    }

    /* Mobile Extras (පිටුව යටින් පෙන්වන Features සහ Ratings) */
    .mobile-auth-extras {
        display: block;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid #EEEEEE;
    }

    .mobile-auth-extras .feature-list li {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .mobile-auth-extras .auth-social-proof {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 30px;
    }

    .mobile-auth-extras .auth-badge {
        flex-direction: column;
        font-size: 11px;
        text-align: center;
        max-width: 140px;
    }

    .mobile-auth-extras .auth-badge svg, .mobile-auth-extras .auth-badge i {
        margin-right: 0;
        margin-bottom: 8px;
        width: 28px !important;
        height: 28px !important;
        font-size: 28px;
    }
}