:root {
    --primary-gold: #d4af37;
    --dark-accent: #1a1a1a;
    --glass-white: rgba(255, 255, 255, 0.94);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    padding: 20px;
}

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: var(--glass-white);
    padding: 45px 35px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* Header */
.logo-icon {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
    display: inline-block;
}

.card-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--dark-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-header p {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: #777;
    margin-bottom: 35px;
    font-weight: 600;
}

/* Input Styling */
.input-group {
    position: relative;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.input-group i.main-icon {
    position: absolute;
    left: 16px;
    color: #999;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 5;
}

.input-group input {
    width: 100%;
    padding: 15px 45px 15px 48px;
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
    outline: none;
    font-size: 0.95rem;
    background: #fff;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

/* Eye Icon */
.toggle-pass {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.toggle-pass:hover { color: var(--primary-gold); }

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 20px;
    color: #666;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    user-select: none;
    margin-bottom: 15px;
}

.forgot-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

/* Button */
.login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--dark-accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    
    /* New styles for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between text and loader */
}

.login-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Loader - Removed absolute positioning */
.loader {
    display: none; /* Hidden by default */
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
}

.modal-close {
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    background: var(--primary-gold);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}
