:root {
    --primary-color: #d4af37;
    --primary-rgb: 212, 175, 55;
    --secondary-color: #1a1a1a;
    --accent-color: #b8941f;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0d1117;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Barlow', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 50%, var(--bg-dark) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px var(--shadow-color);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.login-card-inner {
    position: relative;
    z-index: 2;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.brand-logo {
    text-align: center;
    margin-bottom: 40px;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.brand-icon i {
    font-size: 32px;
    color: var(--text-light);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.brand-subtitle {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 1.1rem;
    font-weight: 300;
}

.form-floating {
    margin-bottom: 20px;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    color: var(--text-light);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-floating label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.btn-login {
    background: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #000000 !important;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: #f2f2f2 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    color: #000000 !important;
}

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

.btn-login .loading-spinner {
    color: #000000;
}

.forgot-password {
    text-align: center;
    margin-top: 25px;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.register-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.register-link span {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 10px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    display: none;
    margin-right: 10px;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51cf66;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 25px;
        margin: 10px;
        border-radius: 16px;
    }

    .brand-title {
        font-size: 2rem;
    }

    .brand-icon {
        width: 60px;
        height: 60px;
    }

    .brand-icon i {
        font-size: 24px;
    }
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    transition: color 0.3s ease;
}

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

.form-floating.password-field {
    position: relative;
}