body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
}

/* CONTENEDOR PRINCIPAL */

.wrapper {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 15px;
    box-sizing: border-box;
}

/* FORMULARIO */

.box {

    width: 100%;
    max-width: 350px;

    padding: 20px;

    background: #1c1c1c;
    border-radius: 10px;

    text-align: center;
    box-sizing: border-box;
}

input {
    width: 100%;
    padding: 15px;
    margin: 8px 0;

    font-size: 18px;
    box-sizing: border-box;
}

button {
    width: 100%;

    padding: 30px;
    margin: 8px 0;

    background: #4caf50;
    border: none;

    color: white;
    cursor: pointer;

    font-size: 24px;
    font-weight: bold;

    box-sizing: border-box;
}

/* OVERLAY */

.overlay {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

/* MODAL */

.modal {
    position: relative;

    padding: 30px 35px;

    border-radius: 8px;

    color: white;
    font-size: 16px;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

    animation: popIn 0.25s ease;

    min-width: 220px;
    text-align: center;

    box-sizing: border-box;
}

.modal.error {
    background: #b00020;
}

.modal.success {
    background: #1b5e20;
}

/* BOTÓN CERRAR */

.close {
    position: absolute;
    top: 6px;
    right: 10px;

    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}

/* ANIMACIÓN */

@keyframes popIn {

    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.login-link {
    margin-top: 15px;
    font-size: 14px;
    color: #ccc;
}

.login-link a {
    color: #4caf50;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .box {
        max-width: none;
        width: 100%;
    }

    input {
        font-size: 16px;
    }

    button {
        font-size: 20px;
        padding: 22px;
    }

    .modal {
        width: calc(100% - 30px);
        min-width: auto;
    }
}

