/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4aa3ff;        /* светло-голубой основной */
    --primary-dark: #2c8cff;   /* чуть темнее для ховера */
    --secondary: #7ab8ff;      /* дополнительный голубой */
    --bg-light: #eef5ff;       /* ледяной фон (очень светлый голубой) */
    --text-dark: #1e2a3a;      /* тёмный текст */
    --text-gray: #4a627a;      /* серо-голубой текст */
    --border: #c8e0ff;         /* светло-голубая граница */
    --card-bg: rgba(255, 255, 255, 0.92); /* прозрачный лёд (92% белого) */
    --subtitle-size: 18px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #b0d4ff, #ffffff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-weight: 450;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card {
    background: rgba(255, 255, 255, 0.85); /* 85% прозрачности */
    backdrop-filter: blur(10px); /* эффект матового стекла */
    border-radius: 32px;
    padding: 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 16px 0 8px;
}

.subtitle {
    color: var(--text-gray);
    font-size: var(--subtitle-size);
    margin-bottom: 32px;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
    line-height: 1.4;
}

input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    background: var(--bg-light);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: white;
}

.hint {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

hr {
    margin: 32px 0 24px;
    border: none;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

.register-section {
    text-align: center;
}

.register-text {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.register-link {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1.5px solid var(--border);
}

.register-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-gray);
}

@media (max-width: 500px) {
    .card {
        padding: 28px;
    }
    h2 {
        font-size: 24px;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}