:root {
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: var(--text);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.login-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e0ecff;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 20px;
}

h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.subtitle {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-label {
    font-size: 13px;
    color: var(--muted);
}

.form-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:disabled {
    background: #9db7f3;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.95;
}

.btn-primary:disabled:hover,
.btn-primary:disabled:active {
    transform: none;
    box-shadow: none;
}

.error-message {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
    margin-bottom: 14px;
    font-size: 13px;
}

.success-message {
    padding: 10px 12px;
    border-radius: 10px;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
    margin-bottom: 14px;
    font-size: 13px;
}

.register-card {
    max-width: 460px;
}

.consents-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 16px;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    line-height: 1.35;
}

.consent-item input[type="checkbox"] {
    margin-top: 1px;
    accent-color: var(--primary);
}

.auth-switch-text {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-switch-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

.form-disabled-note {
    margin: 8px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.copy-email-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.copy-email-link:hover {
    opacity: 0.85;
}

.copy-email-toast {
    margin: 6px 0 0;
    text-align: center;
    font-size: 12px;
    color: #166534;
    opacity: 0;
    transition: opacity 0.2s ease;
    min-height: 16px;
}

.copy-email-toast.is-visible {
    opacity: 1;
}
