* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    /*background: radial-gradient(circle at top, #0f172a, #020617);*/
    background: radial-gradient(circle at top, #7d55bd, #020617);
		background-image: linear-gradient(-20deg, #0e2635 0% 0%, #352768 100%);

    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    padding: 16px; /* для мобильных экранов */
}

input[name=confirm_code]::-webkit-inner-spin-button, 
input[name=confirm_code]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: #7348c366;
		background-image: linear-gradient(-20deg, #0e2635 0% 0%, #352768 100%);

    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,.6);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
}

.logo span {
    color: #38bdf8;
}

h1 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 500;
    color: #cbd5f5;
}

.field {
    margin-bottom: 16px;
}

.field input {
    width: 100%;
    padding: 14px 16px;
    background: #020617;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.15);
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    border: none;
    border-radius: 10px;
    color: #020617;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: filter 0.2s;
}

.btn:hover {
    filter: brightness(1.05);
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    flex-wrap: wrap;
}

.links a {
    font-size: 13px;
    color: #fff;
    text-decoration: underline;
    margin-top: 6px;
}

.error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fecaca;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #7d91ad;
}

/* Мобильные экраны */
@media (max-width: 480px) {
    .login-box {
        padding: 24px 20px;
    }
    
    h1 {
        font-size: 18px;
    }

    .logo {
        font-size: 22px;
    }

    .field input {
        font-size: 13px;
        padding: 12px 14px;
    }

    .btn {
        font-size: 13px;
        padding: 12px;
    }
}
