*{
    box-sizing:border-box;
}

html,
body{
    min-height:100%;
}

body{
    margin:0;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.16), transparent 34%),
        linear-gradient(135deg, #eff6ff 0%, #f8fafc 42%, #f1f5f9 100%);
    color:#0f172a;
    font-family:Arial, Helvetica, sans-serif;
}

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

.auth-card{
    width:100%;
    max-width:470px;
    background:#fff;
    border:1px solid #dbe3ef;
    border-radius:28px;
    padding:32px;
    box-shadow:0 24px 70px rgba(15,23,42,.14);
}

.auth-logo{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:26px;
}

.auth-logo-icon{
    width:54px;
    height:54px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#2563eb,#1e3a8a);
    color:#fff;
    font-size:26px;
    font-weight:900;
    box-shadow:0 10px 28px rgba(37,99,235,.28);
}

.auth-logo h1{
    margin:0;
    font-size:28px;
    line-height:1.1;
}

.auth-logo p{
    margin:5px 0 0;
    color:#64748b;
    font-weight:700;
}

.auth-form{
    margin:0;
}

.auth-form-title{
    font-size:21px;
    font-weight:900;
    margin-bottom:8px;
}

.auth-form-note{
    color:#64748b;
    font-size:15px;
    line-height:1.45;
    margin-bottom:20px;
}

label{
    display:block;
    font-size:14px;
    font-weight:800;
    margin-bottom:8px;
    color:#1e293b;
}

input{
    width:100%;
    min-height:54px;
    border:1px solid #cbd5e1;
    border-radius:16px;
    padding:13px 15px;
    outline:none;
    font-size:17px;
    color:#0f172a;
    background:#fff;
    transition:.18s ease;
}

input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.code-input{
    text-align:center;
    letter-spacing:12px;
    font-size:30px;
    font-weight:900;
    padding-left:27px;
}

button{
    width:100%;
    min-height:54px;
    border:0;
    border-radius:16px;
    margin-top:18px;
    background:#2563eb;
    color:#fff;
    font-size:17px;
    font-weight:900;
    cursor:pointer;
    transition:.18s ease;
}

button:hover{
    background:#1d4ed8;
    transform:translateY(-1px);
}

.auth-link-button{
    background:transparent;
    color:#2563eb;
    min-height:auto;
    margin-top:16px;
    padding:0;
    font-size:15px;
}

.auth-link-button:hover{
    background:transparent;
    transform:none;
    text-decoration:underline;
}

.auth-secondary-form{
    margin:0;
}

.auth-message{
    padding:14px 15px;
    border-radius:16px;
    margin-bottom:18px;
    font-size:15px;
    line-height:1.45;
    font-weight:700;
}

.auth-error{
    background:#fee2e2;
    color:#991b1b;
}

.auth-success{
    background:#dcfce7;
    color:#166534;
}

.auth-help{
    margin-top:24px;
    padding:14px 15px;
    border-radius:16px;
    background:#f8fafc;
    color:#64748b;
    font-size:14px;
    line-height:1.45;
}

.auth-help strong{
    color:#0f172a;
}

@media(max-width:540px){
    .auth-page{
        padding:14px;
    }

    .auth-card{
        padding:24px;
        border-radius:24px;
    }

    .auth-logo h1{
        font-size:24px;
    }
}
