/* static/css/auth.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #0a0a0b;
    color: #e5e5e5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    background-size: 400% 400%;
    animation: breathing 20s ease-in-out infinite;
}

@keyframes breathing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-card {
    background: rgba(16, 16, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 15px;
    color: #64748b;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.alert.hidden { display: none; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #fca5a5; }
.alert-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); color: #86efac; }

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1f;
    border: 1px solid #2a2a30;
    border-radius: 10px;
    color: #e5e5e5;
    font-size: 15px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #0ea5e9;
    background: #1f1f24;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.form-footer a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    color: #7dd3fc;
}

/* Multi-step Registration Styles */
.register-container {
    display: flex;
    gap: 24px;
    max-width: 900px;
    width: 100%;
    padding: 20px;
}

.auth-card.register-card {
    max-width: 520px;
    flex: 1;
}

/* Assistant Panel */
.assistant-panel {
    background: rgba(16, 16, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 280px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.assistant-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.assistant-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.assistant-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.assistant-info span {
    font-size: 12px;
    color: #64748b;
}

.assistant-message {
    background: #1a1a1f;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.assistant-message p {
    font-size: 14px;
    line-height: 1.6;
    color: #a1a1aa;
}

.assistant-message p:not(:last-child) {
    margin-bottom: 12px;
}

.assistant-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 10px;
    font-size: 13px;
    color: #7dd3fc;
}

.assistant-tip svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a1f;
    border: 2px solid #2a2a30;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}

.step-indicator.active .step-dot {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    border-color: #0ea5e9;
    color: #fff;
}

.step-indicator.completed .step-dot {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #2a2a30;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: #22c55e;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.step-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

/* Input Row for side-by-side fields */
.input-row {
    display: flex;
    gap: 16px;
}

.input-row .input-group {
    flex: 1;
}

/* Select Styling */
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1f;
    border: 1px solid #2a2a30;
    border-radius: 10px;
    color: #e5e5e5;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-select:focus {
    outline: none;
    border-color: #0ea5e9;
    background-color: #1f1f24;
}

.form-select option {
    background: #1a1a1f;
    color: #e5e5e5;
}

/* Button Row */
.button-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-secondary {
    background: #1a1a1f;
    border: 1px solid #2a2a30;
    color: #a1a1aa;
}

.btn-secondary:hover {
    background: #1f1f24;
    border-color: #3a3a40;
    color: #e5e5e5;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #2a2a30;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak { width: 33%; background: #ef4444; }
.strength-fill.medium { width: 66%; background: #f59e0b; }
.strength-fill.strong { width: 100%; background: #22c55e; }

.strength-text {
    font-size: 12px;
    color: #64748b;
}

/* Input validation states */
.form-input.valid {
    border-color: #22c55e;
}

.form-input.invalid {
    border-color: #ef4444;
}

.input-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.input-hint.error {
    color: #fca5a5;
}

/* Responsive */
@media (max-width: 768px) {
    .register-container {
        flex-direction: column-reverse;
        padding: 16px;
    }

    .assistant-panel {
        width: 100%;
        position: relative;
        top: 0;
    }

    .auth-card.register-card {
        max-width: 100%;
    }

    .input-row {
        flex-direction: column;
        gap: 0;
    }

    .step-line {
        width: 24px;
    }
}

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

.divider-line {
    flex: 1;
    height: 1px;
    background: #2a2a30;
}

.divider-text {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Login Buttons */
.btn-discord {
    background: #5865F2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord svg {
    width: 20px;
    height: 20px;
}

.btn-discord:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
