﻿
.auth-body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* --- MAIN WRAPPER --- */
.auth-wrapper {
    display: flex;
    align-items: stretch;
    height: 100vh;
    overflow: hidden;
}

/* --- LEFT BRANDING PANEL --- */
.auth-left {
    flex: 0 0 45%;
    min-width: 360px;
    max-width: 500px;
    background: linear-gradient(180deg, #05265e 0%, #0056b3 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 50px 30px;
    box-sizing: border-box;
}

.auth-logo {
    width: 90px;
    height: auto;
}

.auth-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
    line-height: 1.4;
}

.auth-footer-text {
    position: absolute;
    bottom: 15px;
    width: 100%;
    font-size: 0.8rem;
    opacity: 0.75;
}

/* --- RIGHT AUTH FORM PANEL --- */
.auth-right {
    flex: 1;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow: hidden; /* removes scrollbars */
}

/* --- CARD STYLING --- */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 40px 35px;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    max-height: 90vh; /* limit card height */
    overflow-y: auto; /* scroll if content is taller */
}


@media (min-height: 800px) {
    .auth-card {
        transform: scale(1);
    }
}

.auth-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-card p {
    font-size: 0.95rem;
}

/* --- FORM ELEMENTS --- */
.form-label {
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    font-size: 0.95rem;
}

    .form-control:focus {
        border-color: #0078d7;
        box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.2);
    }

/* Slightly reduce spacing for compact layout (especially register) */
.auth-card form .mb-3,
.auth-card form .mb-4 {
    margin-bottom: 0.85rem !important;
}

.btn-primary {
    background-color: #0078d7;
    border: none;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

    .btn-primary:hover {
        background-color: #0062b8;
    }

/* --- LINKS / TEXT --- */
.text-muted a {
    font-weight: 500;
    text-decoration: none;
}

    .text-muted a:hover {
        text-decoration: underline;
    }

/* --- FORM RESPONSIVENESS --- */

/* Two-column fields (for register) align nicely */
@media (min-width: 768px) {
    .auth-card form .row .col-md-6 {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

/* --- RESPONSIVENESS BREAKPOINTS --- */

/* Medium Screens (Tablets) */
@media (max-width: 992px) {
    .auth-left {
        flex: 0 0 40%;
        padding: 30px;
    }

    .auth-card {
        max-width: 380px;
        padding: 35px 25px;
    }
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    .auth-left,
    .auth-right {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .auth-left {
        padding: 40px 20px;
    }

    .auth-right {
        padding: 20px;
    }

    .auth-card {
        margin: 40px 0;
        width: 90%;
        max-width: 500px;
        transform: none;
    }

    .auth-footer-text {
        position: static;
        margin-top: 20px;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 480px) {
    .auth-title {
        font-size: 1.8rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
    }

    .auth-card {
        padding: 30px 20px;
        width: 95%;
        max-width: 95%;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 10px;
    }
}
