/* ============================================
   AUTH PAGES — Layout & Design Override
   Loaded AFTER register.css. Does NOT replace it.
   register.css remains intact for all pages.
   ============================================ */

/* ---- Wrapper ---- */
.auth-wrapper {
    min-height: 100vh;
    background: #fff;
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ---- Left Panel ---- */
.auth-left {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.auth-left img {
    width: 100%;
    height: 100%;
    max-height: 96vh;
    object-fit: contain;
    object-position: center;
}

/* ---- Right Panel ---- */
.auth-right {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    background: #fff;
    box-sizing: border-box;
    min-height: 100vh;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

/* ---- Header ---- */
.auth-header {
    text-align: left;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    color: #000;
    margin: 0 0 8px 0;
}

.auth-header p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: #5E6A72;
    margin: 0;
}

/* ---- Form Fields ---- */
.auth-field {
    margin-bottom: 18px;
    text-align: left;
}

.auth-field > label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    margin-bottom: 8px;
}

.auth-input-wrap {
    position: relative;
    width: 100%;
}

/* Field icon (email, lock, name icons) */
.auth-input-wrap .field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}

/*
 * Override .styled-input ONLY inside .auth-field
 * Higher specificity than register.css's .styled-input (0-2-0 > 0-1-0)
 * so no !important needed on most properties.
 */
.auth-field .styled-input {
    width: 100%;
    height: 54px;
    padding: 0 20px 0 52px;
    border: 1px solid #DCE3E7;
    border-radius: 39px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.auth-field .styled-input:focus {
    border-color: #bbb;
}

.auth-field .styled-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Password fields need extra right padding for eye icon */
.auth-field .styled-input.password-input {
    padding-right: 50px;
}

/* Eye toggle icon — left:auto !important overrides inline style="left:91%" */
.auth-input-wrap .toggle-visibility {
    position: absolute;
    right: 18px;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    opacity: 0.5;
    cursor: pointer;
    z-index: 2;
}

.auth-input-wrap .toggle-visibility:hover {
    opacity: 0.8;
}

/* ---- Forgot Password Link ---- */
.auth-forgot {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 22px;
}

.auth-forgot a {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #FF0000;
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

/* ---- Submit Button ---- */
.auth-btn {
    display: block;
    width: 100%;
    height: 54px;
    max-width: 100%;
    background-color: #EF1919;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
    box-shadow:
        1px 2px 4px 0 rgba(77, 0, 0, 0.2),
        3px 7px 8px 0 rgba(77, 0, 0, 0.17),
        8px 16px 11px 0 rgba(77, 0, 0, 0.1),
        13px 28px 13px 0 rgba(77, 0, 0, 0.03),
        21px 44px 14px 0 rgba(77, 0, 0, 0);
}

.auth-btn:hover {
    background-color: #c11313;
}

/* ---- OR Divider ---- */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E5E5;
}

.auth-divider span {
    padding: 0 16px;
    font-family: 'Poppins', sans-serif;
    color: #888;
    font-size: 14px;
    white-space: nowrap;
}

/* ---- Social Buttons ---- */
.auth-socials {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-socials .social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 30px;
    padding: 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.auth-socials .social-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #5E6A72;
    text-decoration: none;
}

.auth-socials .social-btn:hover {
    border-color: #ccc;
    background-color: #fafafa;
}

.auth-socials .social-btn i {
    font-size: 16px;
    color: #000;
}

/* ---- Switch Link ---- */
.auth-switch {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #5E6A72;
    text-align: center;
    margin: 0;
}

.auth-switch a {
    color: #000 !important;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ---- Terms Checkbox ---- */
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.auth-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #999;
    border-radius: 4px;
    margin-top: 2px;
}

.auth-terms input[type="checkbox"]:checked {
    border-color: #EF1919;
}

.auth-terms input[type="checkbox"]:checked::after {
    background-color: #EF1919;
}

.auth-terms > label {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: #5E6A72;
    cursor: pointer;
    text-align: left;
}

.auth-terms label a {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

.auth-terms label a:hover {
    color: #EF1919;
}

/* ---- Footer ---- */
.auth-footer {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #999;
    margin-top: auto;
    padding-top: 30px;
    padding-bottom: 24px;
}

.auth-footer a {
    color: #999;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #666;
}

.auth-footer .dot {
    margin: 0 6px;
}

/* ---- Alert ---- */
.auth-form-wrapper .alert {
    border-radius: 12px;
    margin-bottom: 20px;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .auth-right {
        padding: 40px 36px;
    }

    .auth-header h2 {
        font-size: 28px;
    }

    .auth-field .styled-input {
        height: 50px;
        font-size: 14px;
    }

    .auth-btn {
        height: 50px;
        font-size: 15px;
    }

    .auth-socials .social-btn {
        height: 44px;
    }

    .auth-socials .social-btn a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        display: none !important;
    }

    .auth-right {
        flex: 1 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 40px 24px 40px;
        justify-content: flex-start;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }

    .auth-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .auth-header h2 {
        font-size: 26px;
    }

    .auth-header p {
        font-size: 14px;
    }

    .auth-field > label {
        font-size: 14px;
    }

    .auth-field .styled-input {
        height: 50px;
        font-size: 14px;
    }

    .auth-input-wrap .field-icon {
        left: 16px;
        width: 20px;
        height: 20px;
    }

    .auth-input-wrap .toggle-visibility {
        right: 16px;
        width: 20px;
        height: 20px;
    }

    .auth-btn {
        height: 50px;
        font-size: 15px;
    }

    .auth-socials {
        flex-direction: column;
        gap: 10px;
    }

    .auth-socials .social-btn {
        height: 48px;
    }

    .auth-terms > label {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .auth-right {
        padding: 30px 16px 30px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .auth-header p {
        font-size: 13px;
    }

    .auth-field .styled-input {
        height: 48px;
        font-size: 13px;
        border-radius: 30px;
    }
 
    .auth-btn {
        height: 48px;
        border-radius: 30px;
    }

    .auth-socials .social-btn {
        height: 44px;
        border-radius: 24px;
    }
}
