@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

.auth-page {
    min-height: 100vh;
    background: #f5f5f7;
}

.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-brand-panel {
    flex: 0 0 45%;
    background: url('../images/loginbg.jpeg') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 13, 63, 0.92) 0%, rgba(7, 13, 63, 0.78) 100%);
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    padding: 60px 50px;
    text-align: center;
    max-width: 420px;
}

.auth-brand-logo {
    width: 200px;
    margin-bottom: 36px;
    background: #fff;
    padding: 14px 24px;
    border-radius: 10px;
}

.auth-brand-heading {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.auth-brand-tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 40px;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    margin: 0 auto;
    max-width: 260px;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.auth-brand-feature i {
    color: #b8860b;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background: #fff;
}

.auth-form-inner {
    width: 100%;
    max-width: 420px;
}

.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}

.auth-mobile-logo img {
    height: 36px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}

.auth-tab {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #999;
    text-decoration: none;
    padding: 10px 24px 12px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.auth-tab:hover {
    color: #070d3f;
    text-decoration: none;
}

.auth-tab.active {
    color: #070d3f;
    border-bottom-color: #b8860b;
}

.auth-form-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 20px 0 28px;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.auth-input-wrap:focus-within {
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
    background: #fff;
}

.auth-input-wrap i {
    color: #aaa;
    font-size: 15px;
    margin-right: 10px;
    flex-shrink: 0;
}

.auth-input-wrap:focus-within i {
    color: #b8860b;
}

.auth-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #222;
}

.auth-input-wrap input::placeholder {
    color: #bbb;
}

.auth-input-wrap input.is-invalid {
    color: #dc3545;
}

.auth-toggle-pw {
    background: none;
    border: none;
    padding: 0 0 0 8px;
    cursor: pointer;
    color: #aaa;
    font-size: 15px;
    transition: color 0.2s;
}

.auth-toggle-pw:hover {
    color: #070d3f;
}

.auth-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    margin-top: 5px;
    padding-left: 2px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin: 0;
}

.auth-remember input {
    accent-color: #b8860b;
    width: 16px;
    height: 16px;
}

.auth-forgot-link {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #b8860b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: #d4a017;
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #070d3f 0%, #0f1854 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b8860b, #d4a017, #b8860b);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(7, 13, 63, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-switch-text {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #777;
    margin-bottom: 28px;
}

.auth-switch-text a {
    color: #b8860b;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch-text a:hover {
    color: #d4a017;
    text-decoration: underline;
}

.auth-trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.auth-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #aaa;
}

.auth-trust-badge i {
    font-size: 12px;
    color: #b8860b;
}

.auth-phone-row {
    display: flex;
    gap: 8px;
}

.auth-country-code-wrap {
    flex-shrink: 0;
    width: 110px;
    padding: 0 6px;
}

.auth-country-select {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #222;
    padding: 12px 0;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    padding-right: 16px;
}

.auth-country-select:focus {
    color: #b8860b;
}

.auth-phone-input-wrap {
    flex: 1;
}

.auth-field-row {
    display: flex;
    gap: 14px;
}

.auth-field-row .auth-field {
    flex: 1;
}

@media (max-width: 991px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-split {
        min-height: 100vh;
    }

    .auth-form-panel {
        padding: 30px 20px;
        background: linear-gradient(180deg, #070d3f 0%, #070d3f 180px, #fff 180px, #fff 100%);
    }

    .auth-form-inner {
        background: #fff;
        border-radius: 16px;
        padding: 32px 24px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
        margin-top: 60px;
    }

    .auth-mobile-logo {
        display: block;
        margin-top: -60px;
        margin-bottom: 24px;
    }

    .auth-mobile-logo img {
        height: 32px;
        position: relative;
        top: -40px;
    }

    .auth-tabs {
        margin-bottom: 4px;
    }

    .auth-tab {
        font-size: 20px;
        padding: 8px 18px 10px;
    }

    .auth-form-subtitle {
        margin: 14px 0 22px;
    }

    .auth-divider span {
        background: #fff;
    }
}

@media (max-width: 576px) {
    .auth-form-panel {
        padding: 20px 16px;
    }

    .auth-form-inner {
        padding: 24px 18px;
    }

    .auth-field-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-tab {
        font-size: 18px;
        padding: 8px 14px 10px;
    }

    .auth-submit-btn {
        font-size: 15px;
        padding: 12px;
    }

    .auth-trust-badges {
        gap: 16px;
    }
}
