/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0f1724;
    color: #e2e8f0;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* ========== СТРАНИЦА АВТОРИЗАЦИИ ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-y: auto;
    padding: 16px;
    background: #0f1724;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
}

.auth-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: clamp(24px, 5vw, 40px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(79, 158, 248, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card h1 {
    font-size: clamp(20px, 6vw, 22px);
    font-weight: 700;
    background: linear-gradient(135deg, #4f9ef8 0%, #7b6ef6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-align: center;
}

.auth-card h2 {
    font-size: clamp(16px, 5vw, 18px);
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-align: center;
    color: #e2e8f0;
}

.auth-description {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-card input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 14px;
    background: rgba(15, 23, 36, 0.8);
    border: 1px solid #263e5d;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    -webkit-appearance: none;
}

.auth-card input:focus {
    border-color: #3b6091;
}

.auth-card button {
    width: 100%;
    padding: 14px;
    background: #263855;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    border: 1px solid #3a5e97;
}

.auth-card button:hover {
    background: #2c3d59;
	transition: all 0.3s;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.auth-link a {
    color: #4f9ef8;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link a:hover {
    color: #60a5fa;
}

/* ========== СООБЩЕНИЯ ОБ ОШИБКАХ/УСПЕХЕ ========== */
.error-message, .success-message {
    background: #1e2a3a;
    border: 1px solid #263e5d;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.error-message {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid #ff4757;
    color: #ff4757;
}

.success-message {
    background: #1e2a3a;
    border: 1px solid #2ecc71;
    color: #e0e0e0;
}

.success-message a {
    color: #4f9ef8;
    word-break: break-all;
}

.email-highlight {
    color: #4f9ef8;
    font-weight: 600;
}
