:root {
    --noiro-input-bg: #f7f8fb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(900px 500px at 15% -5%, rgba(30,102,245,0.12), transparent 70%),
        radial-gradient(700px 420px at 95% 10%, rgba(114,135,253,0.10), transparent 66%),
        #dce0e8;
    color: #4c4f69;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    background: linear-gradient(165deg, #eff1f5, #e6e9ef);
    border: 1px solid #bcc0cc;
    border-radius: 16px;
    padding: 36px 32px 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(76,79,105,0.16);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-card {
    max-width: 430px;
    padding: 38px 34px 34px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand {
    justify-content: center;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-full {
    width: 153px;
    height: 42px;
}

.login-logo {
    width: 182px;
    height: 50px;
}

.login-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

h1 {
    font-size: 22px;
    font-weight: 600;
}

.subtitle {
    color: #6c6f85;
    font-size: 14px;
    line-height: 1.5;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 68px;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid #bcc0cc;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.auth-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.auth-option-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-option-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.auth-option-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-option-description {
    font-size: 13px;
    line-height: 1.35;
}

.auth-option-primary {
    background: #1e66f5;
    border-color: #1e66f5;
    color: #eff1f5;
    box-shadow: 0 12px 26px rgba(30,102,245,0.22);
}

.auth-option-primary:hover {
    background: #174fc7;
    border-color: #174fc7;
    box-shadow: 0 14px 30px rgba(30,102,245,0.28);
}

.auth-option-primary:active {
    background: #1548b8;
    border-color: #1548b8;
}

.auth-option:focus-visible {
    outline: 3px solid rgba(30,102,245,0.28);
    outline-offset: 3px;
}

.auth-option-primary .auth-option-icon {
    background: rgba(239,241,245,0.16);
}

.auth-option-primary .auth-option-description {
    color: rgba(239,241,245,0.78);
}

.auth-option-secondary {
    background: rgba(239,241,245,0.56);
    color: #4c4f69;
}

.auth-option-secondary:hover {
    background: rgba(30,102,245,0.08);
    border-color: #1e66f5;
    box-shadow: 0 10px 22px rgba(76,79,105,0.10);
}

.auth-option-secondary .auth-option-icon {
    background: rgba(30,102,245,0.08);
    color: #1e66f5;
}

.auth-option-secondary .auth-option-description {
    color: #6c6f85;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7c7f93;
    font-size: 12px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #bcc0cc;
}

.btn {
    display: block;
    width: 100%;
    background: #1e66f5;
    color: #eff1f5;
    text-decoration: none;
    text-align: center;
    padding: 7px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover { background: #7287fd; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
    display: block;
    width: 100%;
    background: transparent;
    color: #1e66f5;
    text-decoration: none;
    text-align: center;
    padding: 7px 15px;
    border: 1px solid #1e66f5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-outline:hover { background: rgba(30,102,245,0.10); }

.btn-secondary {
    display: block;
    width: 100%;
    background: transparent;
    color: #6c6f85;
    text-decoration: none;
    text-align: center;
    padding: 7px 15px;
    border: 1px solid #bcc0cc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.btn-secondary:hover { color: #4c4f69; border-color: #8c8fa1; }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

label {
    display: block;
    font-size: 13px;
    color: #6c6f85;
    margin-bottom: 6px;
}

.field {
    display: flex;
    flex-direction: column;
}

input {
    width: 100%;
    padding: 7px 11px;
    border: 1px solid #bcc0cc;
    border-radius: 8px;
    background: var(--noiro-input-bg);
    color: #4c4f69;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

input:focus { border-color: #1e66f5; }
input::placeholder { color: #9ca0b0; }

.message {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

.message.error {
    display: block;
    background: rgba(210,15,57,0.10);
    border: 1px solid #d20f39;
    color: #d20f39;
}

.message.success {
    display: block;
    background: rgba(64,160,43,0.10);
    border: 1px solid #40a02b;
    color: #40a02b;
}

.error-text {
    color: #d20f39;
    font-size: 13px;
    display: none;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link {
    color: #6c6f85;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.link:hover { color: #4c4f69; }
