:root {
    --accent: #7051ae;
    --accent-hover: #5d4293;
    --accent-light: rgba(112, 81, 174, 0.08);
    --bg-surface: #ffffff;
    --text-primary: #2d2a32;
    --text-secondary: #6e6b74;
    --border: #eae6f0;
    --radius-large: 24px;
    --radius-btn: 16px;
}

.login-container {
    background: var(--bg-surface);
    border-radius: var(--radius-large);
    padding: 40px 48px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(112, 81, 174, 0.08);
    border: 1px solid var(--border);
    animation: fadeInUp 0.4s ease;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-light);
    padding: 4px;
}

.login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.login-logo h1 {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.login-logo p {
    font-size: 15px;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: #fdfcfd;
    color: var(--text-primary);
}

.form-group input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 4px var(--accent-light);
    background: var(--bg-surface);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(112, 81, 174, 0.25);
}

.btn-login:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 18px rgba(112, 81, 174, 0.35);
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:disabled {
    background: #d1c8e1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.alert-msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

.alert-msg.error {
    background: #fef2f2;
    color: #dc3545;
    border: 1px solid #fecaca;
    display: block;
}

.alert-msg.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

/* Состояние "письмо отправлено" */
.sent-state {
    text-align: center;
}

.sent-state .icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.sent-state h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.sent-state p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sent-state strong {
    color: var(--text-primary);
}

.sent-hint {
    margin-top: 16px;
    font-size: 13px !important;
    background: rgba(112, 81, 174, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.resend-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.resend-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
}