/* ===========================
   FALLEN ANGEL — Login Styles
   =========================== */

.login-body {
    overflow: hidden;
    height: 100vh;
}

.login-layout {
    display: flex;
    height: 100vh;
}

/* Left Panel */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px clamp(32px, 5vw, 80px);
    overflow-y: auto;
    position: relative;
}

.login-logo {
    margin-bottom: 48px;
    display: inline-flex;
    align-items: center;
}

.login-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* Form Panels */
.form-panel {
    display: none;
    width: 100%;
    animation: formFadeIn 0.4s var(--ease);
}

.form-panel.active {
    display: block;
}

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

.form-header {
    margin-bottom: 36px;
}

.form-header h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 8px;
}

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

/* Input Groups */
.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-hover);
    padding: 10px 0;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
}

.input-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.input-group input:focus {
    border-bottom-color: var(--accent);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}

.input-group input:focus ~ .input-line {
    width: 100%;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-hover);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '✓';
    font-size: 0.6rem;
    color: var(--bg);
}

.form-link {
    font-size: 0.82rem;
    color: var(--accent);
    transition: opacity 0.3s;
}

.form-link:hover {
    opacity: 0.7;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--white);
    color: var(--bg);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: var(--accent);
}

.btn-arrow {
    transition: transform 0.3s var(--ease);
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--bg);
    border-right-color: var(--bg);
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

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

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.form-divider span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1px solid var(--border-hover);
    border-radius: 2px;
    font-size: 0.82rem;
    color: var(--text-primary);
    transition: all 0.3s var(--ease);
}

.btn-social:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Login Bottom */
.login-bottom-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 24px;
}

/* Right Panel */
.login-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-right-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #15120e 0%, #0d0b08 40%, #0a0a0b 100%);
    z-index: 0;
}

.login-right-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 168, 130, 0.06) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
}

.login-right-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(196, 168, 130, 0.08);
    animation: spin 40s linear infinite;
}

.login-right-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.login-quote blockquote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.login-quote cite {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-style: normal;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.login-right-features {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.login-feature-icon {
    color: var(--accent);
    font-size: 0.6rem;
    opacity: 0.7;
}

/* Notification */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--text-primary);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease);
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notification.error {
    border-color: rgba(200, 80, 80, 0.3);
}

.notification.success {
    border-color: rgba(130, 196, 130, 0.3);
}

/* Password Strength */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    transition: background 0.3s;
}

.strength-bar.weak { background: #c85050; }
.strength-bar.medium { background: #c8a850; }
.strength-bar.strong { background: #82c882; }

/* Responsive */
@media (max-width: 900px) {
    .login-right {
        display: none;
    }

    .login-left {
        padding: 24px clamp(24px, 5vw, 48px);
    }
}

@media (max-width: 480px) {
    .input-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .form-header h1 {
        font-size: 1.8rem;
    }
}
