/* ═══════════════════════════════════════════════════════════
   SOLARIS - Login CSS (iOS Glassmorphism Dark)
   ═══════════════════════════════════════════════════════════ */

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

.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    min-height: 100vh;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* ─── Animated Background ─── */
.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 600px 600px at 20% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 80%, rgba(234, 88, 12, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ─── Container ─── */
.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* ─── Brand Side ─── */
.login-brand {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.login-brand::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06), transparent);
}

.brand-content { max-width: 440px; }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-logo i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
}

.brand-logo h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: #ffffff;
}

.brand-content > h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.brand-content > p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ─── Features ─── */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-features .feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.brand-features .feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateX(6px);
}

.brand-features .feature i {
    font-size: 1.1rem;
    color: #f59e0b;
    width: 20px;
    text-align: center;
}

.brand-features .feature span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

/* ─── Form Side ─── */
.login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.login-form > h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 32px;
}

/* ─── Alert ─── */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: alertSlide 0.3s ease;
}

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

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.alert i { font-size: 1rem; }

/* ─── Form Controls ─── */
.login-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form .form-group label i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.login-form .form-group input[type="text"],
.login-form .form-group input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.login-form .form-group input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1), 0 0 30px rgba(245, 158, 11, 0.05);
}

.login-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

/* Password toggle */
.password-input {
    position: relative;
}

.password-input input { padding-right: 50px !important; }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 4px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.toggle-password:hover { color: rgba(255, 255, 255, 0.6); }

/* ─── Options ─── */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #f59e0b;
    border-color: #f59e0b;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: 700;
}

/* ─── Submit Button ─── */
.login-form .btn-primary,
.login-form .btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border: none;
    border-radius: 14px;
    color: #000000;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.login-form .btn-primary:hover,
.login-form .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
    filter: brightness(1.1);
}

.login-form .btn-primary:active,
.login-form .btn-block:active {
    transform: translateY(0);
}

/* ─── Login Help ─── */
.login-help {
    margin-top: 28px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
}

.login-help p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
}

.login-help ul {
    list-style: none;
    padding: 0;
}

.login-help li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.login-help strong {
    color: #f59e0b;
    font-weight: 600;
}

/* ─── Footer ─── */
.login-footer {
    margin-top: 40px;
    text-align: center;
}

.login-footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
    .login-container { flex-direction: column; }
    .login-brand { padding: 40px 30px 20px; }
    .login-brand::after { display: none; }
    .brand-features { display: none; }
    .login-form-container { padding: 20px 30px 40px; }
    .brand-logo h1 { font-size: 2.2rem; }
    .brand-content > h2 { font-size: 1.1rem; }
    .brand-content > p { margin-bottom: 0; }
}

@media (max-width: 480px) {
    .login-brand { padding: 30px 20px 16px; }
    .login-form-container { padding: 16px 20px 30px; }
    .brand-logo { gap: 12px; }
    .brand-logo i { font-size: 2rem; }
    .brand-logo h1 { font-size: 1.8rem; letter-spacing: 4px; }
}