﻿/* ==========================================================
   AUTH LAYOUT
========================================================== */
html, body.auth-page-body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Full Screen Background */
.auth-bg {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps background fixed while content scrolls */
    overflow-y: auto; /* Enables vertical scrolling when content exceeds screen height */
    box-sizing: border-box;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.10) );
}

/* Content Wrapper */
.auth-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 5%;
}

/* ==========================================================
   RIGHT LOGIN PANEL
========================================================== */

.auth-right {
    width: 420px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    padding: 2.5rem 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* Form & Input Customization */
.auth-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 1.25rem;
}

.auth-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
}

.input-group-text {
    width: 42px;
}

.input-group-flat {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .input-group-flat:focus-within {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

    .input-group-flat .form-control {
        box-shadow: none !important;
        font-size: 0.925rem;
        padding: 0.625rem 0.75rem;
    }

    .input-group-flat .input-group-text {
        padding-left: 0.875rem;
    }
/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {
    .auth-content {
        justify-content: center;
        padding: 20px;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        width: 100%;
        max-width: 420px;
    }
}
