/* Modern Login Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary-color: #64748B;
    --accent-color: #EC4899;
    --bg-gradient-start: #EFF6FF;
    --bg-gradient-end: #DBEAFE;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --transition-speed: 0.3s;
}

/* OVERRIDE BASE LAYOUT STYLES */
.auth-layout {
    background: none !important;
    display: block !important;
    min-height: auto !important;
    padding: 0 !important;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f0f2f5;
    color: var(--text-main);
}

/* Base Layout & Parallax Container */
.login-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Elements for Parallax */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind card but visible */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -15%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, #43e97b 0%, #38f9d7 100%);
    animation-delay: -5s;
}

.shape-3 {
    top: 20%;
    right: 30%;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #fa709a 0%, #fee140 100%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Glass Card - Premium 2026 */
.glass-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Branding */
.brand-section {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo {
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 80px;
    background: transparent;
    /* Removed glass background */
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    /* Removed padding/shadow/backdrop-filter to clean it up */
}

.brand-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Add shadow directly to image */
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Role Tabs - Pill Style 2026 */
.role-tabs {
    display: flex;
    background: rgba(241, 245, 249, 0.8);
    padding: 6px;
    border-radius: 9999px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.role-tab {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-tab:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.7);
}

.role-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    z-index: 5;
}

.btn-primary-modern {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary-modern:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
}

.login-subtitle-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer & Links */
.footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2rem;
    line-height: 1.5;
}

.footer-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.link-modern {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link-modern:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.system-notices {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Utilities */
.d-none {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .glass-card {
        padding: 1.5rem;
        max-width: 100%;
        margin: 1rem;
        border-radius: 16px;
    }

    .role-tabs {
        flex-wrap: wrap;
    }

    .role-tab {
        flex-basis: 45%;
        margin-bottom: 4px;
        font-size: 0.8rem;
    }
}