@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --sti-blue-900: #00224b;
    --sti-blue-800: #003b7a;
    --sti-blue-700: #004d9e;
    --sti-blue-600: #005bac;
    --sti-blue-500: #0d6efd;
    --sti-blue-100: #ebf4fe;
    --sti-blue-50: #f4f8fd;
    --sti-yellow-500: #ffc72c;
    --sti-yellow-600: #e5b017;
    --sti-yellow-100: #fff9e6;
    --dark-900: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-200: #e2e8f0;
    --gray-100: #f8fafc;
    --white: #ffffff;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 45, 98, 0.08), 0 8px 10px -6px rgba(0, 45, 98, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(0, 45, 98, 0.12), 0 10px 15px -5px rgba(0, 45, 98, 0.06);
    --shadow-xl: 0 25px 50px -12px rgba(0, 34, 75, 0.25);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-800);
    background: #f0f4f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
    overflow-x: hidden;
}

/* Background Atmosphere */
.auth-bg-ambient {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(0, 91, 172, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 199, 44, 0.1) 0%, transparent 40%),
                #f0f4f9;
    z-index: -1;
}

/* Main Container Card */
.auth-container-card {
    width: 100%;
    max-width: 1060px;
    background: var(--white);
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    min-height: 620px;
    animation: fadeInScale 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================================================
   SHOWCASE SIDE PANEL (LEFT)
   ========================================================================== */
.auth-showcase-panel {
    flex: 1 1 45%;
    background: linear-gradient(145deg, var(--sti-blue-900) 0%, var(--sti-blue-800) 50%, var(--sti-blue-600) 100%),
                url("../images/sti-building-bg.png");
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    overflow: hidden;
}

.auth-showcase-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 199, 44, 0.15), transparent 60%),
                linear-gradient(180deg, rgba(0, 34, 75, 0.85) 0%, rgba(0, 59, 122, 0.92) 100%);
    pointer-events: none;
    z-index: 1;
}

.auth-showcase-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: all var(--transition-fast);
    align-self: flex-start;
    margin-bottom: 30px;
}

.btn-back-home:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--sti-yellow-500);
    transform: translateX(-3px);
}

.showcase-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.showcase-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.showcase-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.showcase-title span {
    color: var(--sti-yellow-500);
    display: block;
}

.showcase-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    margin-bottom: 32px;
}

.showcase-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.showcase-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
}

.showcase-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sti-yellow-500);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.showcase-footer {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   FORM PANEL (RIGHT)
   ========================================================================== */
.auth-form-panel {
    flex: 1 1 55%;
    padding: 48px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

.auth-form-header {
    margin-bottom: 28px;
}

.form-mobile-logo {
    display: none;
    height: 48px;
    margin-bottom: 16px;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-900);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin: 0;
}

/* Form Group & Input Styling */
.form-floating-custom {
    position: relative;
    margin-bottom: 20px;
}

.form-label-custom {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--dark-700);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-prefix {
    position: absolute;
    left: 16px;
    color: var(--sti-blue-600);
    font-size: 1.15rem;
    pointer-events: none;
    z-index: 5;
    transition: color var(--transition-fast);
}

.form-control-custom {
    width: 100%;
    height: 52px;
    padding: 12px 16px 12px 48px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-900);
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-control-custom:focus {
    background: var(--white);
    border-color: var(--sti-blue-500);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
    outline: none;
}

.form-control-custom:focus + .input-icon-prefix,
.input-icon-wrap:focus-within .input-icon-prefix {
    color: var(--sti-blue-500);
}

.btn-toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    z-index: 5;
}

.btn-toggle-password:hover {
    color: var(--sti-blue-600);
}

/* Link Styling */
.link-forgot {
    color: var(--sti-blue-600);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.link-forgot:hover {
    color: var(--sti-blue-800);
    text-decoration: underline;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(90deg, var(--sti-yellow-500) 0%, #ffcf40 100%);
    color: var(--sti-blue-900);
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    border: none;
    box-shadow: 0 6px 18px rgba(255, 199, 44, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 8px;
    margin-bottom: 24px;
}

.btn-auth-submit:hover {
    background: linear-gradient(90deg, #ffcf40 0%, #ffd95a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 199, 44, 0.6);
}

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

/* Register Callout Card */
.register-callout-card {
    background: var(--sti-blue-50);
    border: 1px solid rgba(0, 91, 172, 0.12);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.register-callout-text {
    font-size: 0.88rem;
    color: var(--dark-800);
    margin: 0;
}

.btn-register-pill {
    background: var(--white);
    color: var(--sti-blue-600);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 91, 172, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-register-pill:hover {
    background: var(--sti-blue-600);
    color: var(--white);
    border-color: var(--sti-blue-600);
    transform: translateY(-2px);
}

/* User Tips / Role Pills */
.auth-role-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.role-tip-pill {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Alerts */
.alert-custom-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.alert-custom-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991.98px) {
    .auth-container-card {
        flex-direction: column;
        max-width: 580px;
    }

    .auth-showcase-panel {
        padding: 35px 30px;
    }

    .auth-form-panel {
        padding: 35px 30px;
    }
}

@media (max-width: 575.98px) {
    body {
        padding: 15px 10px;
    }

    .auth-container-card {
        border-radius: 20px;
    }

    .auth-showcase-panel {
        display: none;
    }

    .form-mobile-logo {
        display: inline-block;
    }

    .auth-form-panel {
        padding: 30px 20px;
    }

    .register-callout-card {
        flex-direction: column;
        text-align: center;
    }

    .btn-register-pill {
        width: 100%;
        justify-content: center;
    }
}
