/* =========================================================
   BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f9ff;
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
}

/* =========================================================
   BOX FORM
========================================================= */

.box {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);

    display: flex;
    flex-direction: column;
    gap: 16px;

    animation: fadeUp .4s ease;
}

.box h2 {
    font-size: 22px;
    color: #1e90ff;
    text-align: center;
    margin-bottom: 10px;
}

/* =========================================================
   INPUTS
========================================================= */

.box input {
    width: 100%;
    padding: 14px 16px;

    border-radius: 14px;
    border: 2px solid #dbeafe;

    background: #f8fbff;

    font-size: 15px;
    outline: none;

    transition: .25s ease;
}

.box input:focus {
    border-color: #1e90ff;
    box-shadow: 0 0 0 4px rgba(30,144,255,0.12);
}

/* =========================================================
   BOTÕES
========================================================= */

.box button {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 14px;

    background: linear-gradient(135deg, #1e90ff, #2563eb);
    color: #fff;

    font-weight: 700;
    font-size: 15px;

    cursor: pointer;

    transition: .25s ease;
}

.box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30,144,255,0.25);
}

.box button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================
   PASSWORD BOX (OLHO)
========================================================= */

.password-box {
    position: relative;
    width: 100%;
}

.password-box input {
    padding-right: 45px;
}

.password-box i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    color: #1e90ff;
    cursor: pointer;

    font-size: 16px;

    transition: .2s ease;
}

.password-box i:hover {
    color: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

/* =========================================================
   MODAL (ERRO / SUCESSO)
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.55);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.modal-box {
    width: 90%;
    max-width: 380px;

    background: #fff;
    border-radius: 18px;

    padding: 26px;

    text-align: center;

    animation: pop .2s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-box i {
    font-size: 38px;
}

/* erro */
.modal-box.error i {
    color: #ff4d4d;
}

/* sucesso */
.modal-box.success i {
    color: #22c55e;
}

.modal-box p {
    font-size: 15px;
    color: #374151;
}

.modal-box button {
    margin-top: 10px;
    padding: 12px;

    border: none;
    border-radius: 12px;

    background: #1e90ff;
    color: #fff;

    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.modal-box button:hover {
    background: #2563eb;
}

/* =========================================================
   TIMER
========================================================= */

#timer {
    display: block;
    text-align: center;
    margin-top: 8px;

    font-size: 13px;
    color: #6b7280;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 600px) {

    .box {
        padding: 20px;
    }

    .box h2 {
        font-size: 20px;
    }

    .box input {
        font-size: 14px;
        padding: 12px 14px;
    }

    .box button {
        font-size: 14px;
        padding: 12px;
    }

    .modal-box {
        padding: 20px;
    }

    .modal-box i {
        font-size: 32px;
    }
}

/* =========================================================
   ANIMAÇÕES
========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}