/* ================================ */
/* Simple & Clean Login Design */
/* ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0f1a;
    color: #f1f5f9;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Login Wrapper */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0a0f1a;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, rgba(59, 130, 246, 0.03) 0px, transparent 1px, transparent 40px),
        repeating-linear-gradient(0deg, rgba(59, 130, 246, 0.03) 0px, transparent 1px, transparent 40px);
    pointer-events: none;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: rotate 60s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

/* Login Box */
.login-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Logo */
.login-logo {
    width: 64px;
    height: 64px;
    background: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.login-logo i {
    font-size: 32px;
    color: #ffffff;
}

/* Title */
.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 32px;
}

/* Error Alert */
.error-alert {
    background: #7f1d1d;
    border: 1px solid #991b1b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #fca5a5;
    font-size: 14px;
    text-align: center;
}

/* Form */
.login-form {
    /* Form container */
}

/* Input Group */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #0f172a !important;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 15px;
    color: #f1f5f9 !important;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #0f172a !important;
}

.input-group input::placeholder {
    color: #64748b !important;
}

/* Remember Me */
.remember-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-label span {
    font-size: 14px;
    color: #cbd5e1;
}

/* Login Button */
.login-button {
    width: 100%;
    height: 48px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-button:hover {
    background: #2563eb;
}

.login-button:active {
    background: #1d4ed8;
}

.login-button:disabled {
    background: #475569;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 40px 28px;
    }
}
