:root {
    --bg: #070507;
    --accent1: #ff4f0f;
    --accent2: #ff6a00;
    --muted: #bfc8d6;
    --glass-border: rgba(255, 69, 0, 0.12);
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

body {
    background: linear-gradient(180deg, #050405 0%, #0b0505 60%);
    color: #000000;
    min-height: 100vh;
}

.kicker {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 69, 0, 0.15);
    color: var(--accent2);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Background wrapper */
#bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#bg-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.pattern-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Main container positioned above background */
.login-main-wrapper {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 140px);
    /* Account for navbar height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
}

.login-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: center;
}

/* Hero Section */
.hero {
    padding: 10px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.8rem);
    line-height: 1.02;
    margin: 6px 0 20px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.lead-text {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 56ch;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Login Card */
.login-card {
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.94), rgba(22, 14, 14, 0.86));
    border-radius: 16px;
    padding: 32px;
    margin-top: 13%;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(10, 6, 6, 0.6);
    backdrop-filter: blur(10px);
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent2);
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--muted);
    margin-bottom: 24px;
    text-align: center;
    font-size: 1rem;
}

/* Messages */
.messages-container {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.alert-success {
    background: rgba(0, 248, 58, 0.755);
    color: var(--success);
    border-left-color: var(--success);
}

.alert-error {
    background: rgba(185, 11, 28, 0.1);
    color: var(--error);
    border-left-color: var(--error);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
    border-left-color: var(--warning);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info);
    border-left-color: var(--info);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #ccd6df;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    height: 42px;
    padding: 16px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.6);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent2);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
    color: var(--muted);
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--accent2);
}

.forgot-password {
    text-align: right;
    margin-bottom: 10px;

}

.forgot-password a {
    color: var(--accent2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: var(--accent1);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 7px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    border: none;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 90, 30, 0.24);
    transition: all 0.2s ease;
    margin: 5px 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 90, 30, 0.35);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #666;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.divider span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.google-btn {
    width: 100%;
    padding: 7px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 20px;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.25);
}

.google-icon {
    width: 22px;
    height: 22px;
}

.register-link {
    font-size: 0.95rem;
    color: var(--muted);
    text-align: center;
    margin-top: 20px;
}

.register-link a {
    color: var(--accent2);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    color: var(--accent1);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .login-content {
        margin-top: 15%;
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 24px;
    }

    .login-card {
    
    margin-top: 0%;
    
}

    .hero {
        text-align: center;
        padding: 0;
    }
}

@media (max-width: 600px) {
    .login-main-wrapper {
        padding: 40px 15px 30px;
    }

    .login-card {
        padding: 24px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.1s;
}

.fade-in.delay-2 {
    animation-delay: 0.2s;
}

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