/* -------------------------------------------------
   Auth Page - Modern Glassmorphism
   ------------------------------------------------- */

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --glass-bg: rgba(11, 26, 47, 0.9);
    /* Aligned with dashboard #0b1a2f */
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-yellow: #facc15;
    --accent-hover: #eab308;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

/* Background Video */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11, 26, 47, 0.6) 0%, #0b1a2f 100%);
    z-index: -1;
}

/* Layout */
.main-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Glass Card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Forms */
.form-group-custom {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
    font-size: 1rem;
    pointer-events: none;
}

.form-control-custom {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    color: #fff;
    width: 100%;
    outline: none;
    transition: all 0.3s;
    display: block;
}

.form-control-custom:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.1);
}

.form-control-custom:focus+.input-icon {
    color: var(--accent-yellow);
}

/* Eye Icon */
.eye-icon-custom {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.3s;
}

.eye-icon-custom:hover {
    color: #fff;
}

/* Buttons */
.login-btn-custom {
    width: 100%;
    padding: 0.875rem;
    border-radius: 12px;
    background: var(--accent-yellow);
    border: none;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn-custom:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(250, 204, 21, 0.3);
}

.login-btn-custom:active {
    transform: translateY(0);
}

.google-btn-custom {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.google-btn-custom:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Divider */
.divider-custom {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.divider-custom::before,
.divider-custom::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

/* Links */
.link-yellow {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.link-yellow:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Logo */
.site-logo-custom {
    width: 140px;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.site-logo-custom img {
    height: 48px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 0;
        height: 100vh;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: rgba(10, 25, 47, 0.95);
    }

    .site-logo-custom {
        top: 1.5rem;
        left: 1.5rem;
    }
}