/* ==========================
   AUTH SECTION
========================== */

.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* ==========================
   FORM
========================== */

#loginForm {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#loginForm label {
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
}

.auth-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #0d6efd;
}

/* ==========================
   PASSWORD
========================== */

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}

/* ==========================
   OPTIONS
========================== */

.auth-options {
    margin: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.auth-options a {
    text-decoration: none;
}

/* ==========================
   BUTTONS
========================== */

.auth-btn,
.google-btn,
.phone-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #d81b60;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 79, 123, 0.35);
}

.google-btn {
    background: #ffffff;
    border: 1px solid #ddd;
}

.phone-btn {
    background: #f5f5f5;
}

/* ==========================
   DIVIDER
========================== */

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    margin: 0 12px;
    color: #777;
}

/* ==========================
   FOOTER
========================== */

.auth-footer {
    margin-top: 25px;
    text-align: center;
}

.auth-footer a {
    text-decoration: none;
    font-weight: bold;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 500px) {

    .auth-card {
        padding: 25px;
    }

    .auth-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

}

.password-rules {
    text-align: left;
    margin-top: 10px;
    color: #777;
    font-size: 13px;
}

.password-rules small {
    display: block;
    margin: 4px 0;
}

.terms-box {
    margin: 20px 0;
    text-align: left;
    font-size: 14px;
}

.terms-box a {
    text-decoration: none;
    font-weight: 600;
}

#passwordMatch {
    font-size: 13px;
    margin-top: 8px;
    text-align: left;
}

/* PASSWORD STRENGTH */

.strength-bar{

width:100%;
height:8px;
background:#ddd;
border-radius:50px;
overflow:hidden;
margin-top:12px;

}

#strengthFill{

width:0%;
height:100%;
background:red;
transition:0.3s;

}

#strengthText{

margin-top:10px;
font-size:14px;
font-weight:600;

}

/* ==========================================
   PHONE AUTH MODAL
========================================== */

.phone-modal{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.55);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.phone-card{

    width:420px;

    max-width:90%;

    background:#fff;

    border-radius:22px;

    padding:35px;

    box-shadow:0 20px 60px rgba(0,0,0,.25);

    position:relative;

    animation:popup .25s ease;

}

@keyframes popup{

from{

transform:scale(.9);

opacity:0;

}

to{

transform:scale(1);

opacity:1;

}

}

.phone-card h2{

text-align:center;

color:#e63972;

margin-bottom:12px;

}

.phone-card p{

text-align:center;

color:#666;

margin-bottom:25px;

}

.phone-card input{

margin-bottom:18px;

}

#closePhoneModal{

position:absolute;

right:18px;

top:15px;

font-size:30px;

cursor:pointer;

color:#888;

transition:.3s;

}

#closePhoneModal:hover{

color:#e63972;

}

.phone-input{

    display:flex;

    gap:10px;

    margin-bottom:20px;

}

.country-code{

    width:120px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:12px;

    font-size:15px;

    background:#fff;

}

.phone-input .auth-input{

    flex:1;

    margin-bottom:0;

}

#registerForm {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#registerForm label {
    text-align: left;
    font-weight: 600;
    margin: 15px 0 8px;
}
/* YumePath shared form language */
.auth-section{min-height:calc(100vh - 160px);padding:44px var(--yp-gutter,24px)}.auth-card{max-width:460px;border:1px solid var(--yp-border,#efd4df);border-radius:var(--yp-radius,18px);box-shadow:var(--yp-shadow,0 12px 32px rgba(50,20,35,.08));padding:32px;background:#fff}.auth-card h2{color:var(--yp-primary,#d81b60)}.auth-subtitle{color:var(--yp-muted,#765f6c)}#loginForm label,.auth-card label{color:var(--yp-text,#442c3a);font-weight:700}.auth-input{border-color:#e5cbd7;border-radius:12px}.auth-input:focus{border-color:var(--yp-primary,#d81b60);box-shadow:0 0 0 3px rgba(216,27,96,.14)}.auth-btn{background:var(--yp-primary,#d81b60);border-radius:12px}.google-btn,.phone-btn{border-radius:12px;border-color:#e5cbd7;background:#fff}.auth-card a{color:var(--yp-primary-dark,#ad1457)}
