:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --error: #e74c3c;
    --success: #2ecc71;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.datetime-container {
    position: fixed;
    top: 25px;
    right: 25px;
    text-align: right;
    z-index: 100;
}

.date-display {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.time-display {
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 600;
}

.auth-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.brand-logo {
    width: 200px;
    display: block;
    margin: 0 auto 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
    outline: none;
    background: #fff;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.login-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.login-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none !important;
}

.status-alert {
    margin-top: 1.5rem;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.status-alert.error {
    background: #fee;
    color: var(--error);
    border: 1px solid #fdd;
}

.status-alert.success {
    background: #effff0;
    color: var(--success);
    border: 1px solid #d4edda;
}

.support-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.support-footer a {
    color: var(--secondary);
    text-decoration: none;
}

.support-footer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 480px) {
    .datetime-container {
        top: 15px;
        right: 15px;
    }
    
    .date-display {
        font-size: 16px;
    }
    
    .time-display {
        font-size: 20px;
    }
    
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .brand-logo {
        width: 160px;
    }
    
    input {
        padding: 14px 16px;
    }
}

@media (max-width: 360px) {
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-header p {
        font-size: 0.95rem;
    }
}
