*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    min-height:100%;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#6f1430;
    color:#ffffff;
}

.page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px 16px;
    background:#6f1430;
}

.card{
    width:100%;
    max-width:520px;
    padding:42px 34px 34px 34px;
    border:1px solid rgba(255,255,255,0.14);
    background:rgba(255,255,255,0.03);
    text-align:center;
    border-radius:18px;
    box-shadow:0 18px 45px rgba(0,0,0,0.18);
}

.brand{
    margin-bottom:28px;
}

.brand img{
    width:100%;
    max-width:320px;
    display:block;
    margin:0 auto;
}

.title{
    margin:0 0 16px 0;
    font-size:20px;
    font-weight:700;
    letter-spacing:3px;
    color:#ffffff;
}

.subtitle{
    margin:0 auto 28px auto;
    max-width:420px;
    font-size:15px;
    line-height:1.65;
    color:rgba(255,255,255,0.90);
}

.form-recovery{
    width:100%;
    max-width:390px;
    margin:0 auto;
}

.field-wrap{
    text-align:left;
    margin-bottom:22px;
}

.field-label{
    display:block;
    margin-bottom:10px;
    font-size:15px;
    font-weight:600;
    color:#ffffff;
}

.field{
    width:100%;
    height:52px;
    padding:0 16px;
    border:none;
    border-bottom:1px solid rgba(255,255,255,0.82);
    border-radius:0;
    background:transparent;
    color:#ffffff;
    font-size:16px;
    outline:none;
    transition:all .2s ease;
}

.field::placeholder{
    color:rgba(255,255,255,0.56);
}

.field:focus{
    border-bottom:1px solid #ffffff;
    background:rgba(255,255,255,0.03);
    box-shadow:none;
}

.field[inputmode="numeric"]{
    text-align:center;
    letter-spacing:4px;
    font-weight:700;
}

.btn{
    width:100%;
    min-height:56px;
    border:1px solid rgba(255,255,255,0.75);
    border-radius:12px;
    background:#ffffff;
    color:#6f1430;
    font-size:18px;
    font-weight:700;
    letter-spacing:3px;
    cursor:pointer;
    transition:all .2s ease;
    text-transform:uppercase;
}

.btn:hover{
    transform:translateY(-1px);
    background:#f7eef1;
}

.btn:active{
    transform:translateY(0);
}

.btn-disabled{
    background:rgba(255,255,255,0.35) !important;
    color:rgba(111,20,48,0.72) !important;
    cursor:not-allowed !important;
    box-shadow:none !important;
    transform:none !important;
}

.message{
    max-width:390px;
    margin:18px auto 0 auto;
    font-size:14px;
    line-height:1.6;
    text-align:center;
}

.message.error{
    background:rgba(255,255,255,0.07);
    border:1px solid rgba(255,255,255,0.18);
    color:#ffd9de;
    font-size:15px;
    font-weight:700;
    padding:14px 16px;
    border-radius:12px;
}

.message.ok{
    color:#ffffff;
    font-size:16px;
    font-weight:600;
}

.message-helper{
    max-width:390px;
    margin:10px auto 0 auto;
    font-size:13px;
    line-height:1.5;
    color:rgba(255,255,255,0.76);
    text-align:center;
}

.box-next{
    max-width:390px;
    margin:22px auto 0 auto;
    padding:20px 18px;
    border:1px solid rgba(255,255,255,0.15);
    border-radius:14px;
    background:rgba(255,255,255,0.04);
}

.box-next-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:10px;
}

.box-next-text{
    font-size:16px;
    line-height:1.7;
}

.box-highlight{
    margin-top:20px;
}

.box-validate{
    margin-top:22px;
}

.btn-secondary{
    display:block;
    width:100%;
    height:56px;
    line-height:56px;
    margin-top:20px;
    border-radius:12px;
    background:#ffffff;
    color:#6f1430;
    font-size:18px;
    font-weight:700;
    text-align:center;
    text-decoration:none;
    transition:all .2s ease;
    box-shadow:0 10px 24px rgba(0,0,0,0.16);
}

.btn-secondary:hover{
    background:#f7eef1;
    transform:translateY(-1px);
}

.btn-secondary:active{
    transform:translateY(0);
}

.box-validate a.btn-secondary{
    display:block !important;
    width:100% !important;
    height:56px !important;
    line-height:56px !important;
    background:#ffffff !important;
    color:#6f1430 !important;
    text-align:center !important;
    text-decoration:none !important;
    font-weight:700 !important;
    font-size:18px !important;
    border-radius:12px !important;
    box-shadow:0 10px 24px rgba(0,0,0,0.16) !important;
}

.btn-large{
    width:100%;
}

.back-link{
    display:inline-block;
    margin-top:22px;
    color:#9fd0ff;
    text-decoration:none;
    font-size:15px;
}

.back-link:hover{
    text-decoration:underline;
}

.loading-box{
    display:none;
    margin-top:14px;
    font-size:14px;
    color:rgba(255,255,255,0.92);
    text-align:center;
}

.spinner{
    width:18px;
    height:18px;
    display:inline-block;
    vertical-align:middle;
    margin-right:8px;
    border:3px solid rgba(255,255,255,0.28);
    border-top:3px solid #ffffff;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    0%{ transform:rotate(0deg); }
    100%{ transform:rotate(360deg); }
}

.debug{
    margin-top:28px;
    text-align:left;
    background:#ffffff;
    color:#000000;
    padding:14px;
    font-size:12px;
    overflow:auto;
    border-radius:8px;
}

@media (max-width:640px){
    .card{
        padding:28px 20px 24px 20px;
        border-radius:16px;
    }

    .brand img{
        max-width:250px;
    }

    .title{
        font-size:18px;
        letter-spacing:2px;
    }

    .subtitle{
        font-size:14px;
    }

    .field{
        height:50px;
        font-size:15px;
    }

    .btn{
        min-height:52px;
        font-size:17px;
    }

    .btn-secondary{
        height:52px;
        line-height:52px;
        font-size:17px;
    }

    .message.error,
    .message.ok{
        font-size:15px;
    }
}
