@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-base: #1e1f22;
    --card-bg: #313338;
    --text-normal: #dbdee1;
    --text-muted: #b5bac1;
    --text-focus: #f2f3f5;
    --input-bg: #1e1f22;
    --brand-color: #5865F2;
    --brand-hover: #4752C4;
    --link-color: #00a8fc;
    --error-bg: #faa61a; /* Discord-un error xəbərdarlıq rəngi */
    --error-text: #ffffff;
    --divider-color: #3f4147;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body, html {
    height: 100%;
    background-color: var(--bg-base);
    color: var(--text-normal);
    overflow: hidden;
    position: relative;
}

/* --- Hərəkətli Arxa Plan Animasiyaları --- */
.animated-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    background: linear-gradient(135deg, #1e1f22 0%, #2b2d31 100%);
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px; height: 500px;
    background: #5865F2;
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 600px; height: 600px;
    background: #eb459e;
    bottom: -200px; right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 400px; height: 400px;
    background: #00a8fc;
    top: 40%; left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.1); }
    100% { transform: translate(-50px, 100px) scale(0.9); }
}

/* --- Əsas Layout --- */
.app-mount {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px;
}

/* Kart dizaynı (Discord ölçüləri) */
.auth-box {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    padding: 32px;
    width: 784px; /* Orijinal Discord genişliyi */
    transition: width 0.3s ease;
}

/* Sol Tərəf (Form) */
.auth-main {
    flex: 1;
    width: 414px;
    display: flex;
    flex-direction: column;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-header h2 {
    color: var(--text-focus);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Xəta Mesajı */
.alert-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.error-icon {
    width: 20px; height: 20px;
    margin-right: 8px;
}

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

.input-group label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.input-group label .required {
    color: #f04747; /* Qırmızı ulduz */
}

.input-group input {
    width: 100%;
    padding: 10px;
    background-color: var(--input-bg);
    border: none;
    border-radius: 3px;
    color: var(--text-normal);
    font-size: 16px;
    outline: none;
    transition: border 0.2s ease, background-color 0.2s ease;
}

.input-group input:focus {
    background-color: #2b2d31;
}

.forgot-password {
    display: block;
    margin-top: 8px;
    color: var(--link-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.17s ease;
    margin-top: 10px;
    margin-bottom: 8px;
}

.btn-primary:hover {
    background-color: var(--brand-hover);
}

.auth-footer {
    margin-top: 4px;
    font-size: 14px;
}

.need-account {
    color: var(--text-muted);
}

.register-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.register-link:hover {
    text-decoration: underline;
}

/* Ayırıcı Xətt */
.auth-divider {
    width: 1px;
    background-color: var(--divider-color);
    margin: 0 32px;
}

/* Sağ Tərəf (QR Kod) */
.auth-qr {
    width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.qr-container {
    position: relative;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 32px;
}

.qr-image {
    display: block;
    width: 160px;
    height: 160px;
    border-radius: 4px;
}

.qr-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-logo {
    width: 32px; height: 32px;
    background-color: var(--brand-color);
    border-radius: 50%;
}

.auth-qr h3 {
    color: var(--text-focus);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-qr p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.4;
}

.auth-qr p strong {
    color: var(--text-focus);
    font-weight: 600;
}

/* --- Responsiv (Mobil) Dizayn --- */
@media (max-width: 830px) {
    .auth-box {
        width: 100%;
        max-width: 480px;
        padding: 32px;
    }
    
    .auth-divider, .auth-qr {
        display: none; /* Mobildə QR kodu və ayırıcını gizlət */
    }
    
    .auth-main {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 24px;
    }
    .auth-header h2 {
        font-size: 22px;
    }
}