body {
    background-color: #0d0d0d;
    color: #f2f2f2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 30px;
    box-sizing: border-box;
    gap: 20px;
}

.logotip {
    width: 480px;
    filter: drop-shadow(0 0 10px #ffffffcc);
    transition: filter 0.3s ease;
}

.logotip:hover {
    filter: drop-shadow(0 0 15px #ffffff);
}

.header-recovery {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    text-wrap: wrap;
    text-align: center;
}

.header-recovery p {
    width: 70%;
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.5;
}

h1 {
    font-size: 52px;
    letter-spacing: 1px;
    color: #fff;
}

form {
    width: 36%;
    margin-top: 10vh;
    min-height: 30vh;
    /* background-color: #1a1a1a; */
    padding: 30px;
    border-radius: 12px;
    /* box-shadow: 0 0 15px rgba(0, 123, 255, 0.15); */
}

form .input-container {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    flex-direction: column;
    gap: 10px;
}

form .input-container input {
    background-color: #262626;
    color: #fff;
    outline: none;
    border: 2px solid transparent;
    width: 100%;
    text-wrap: nowrap;
    overflow: hidden;
    padding: 35px 12px 10px 12px;
    font-size: 16px;
    border-radius: 10px;
    transition: border 0.2s ease, background-color 0.2s ease;
}

form .input-container input:focus {
    background-color: #2e2e2e;
    /* padding-top: 35px; */
}

form .input-container label {
    transition: all 0.15s ease;
    font-size: 17px;
    pointer-events: none;
    position: absolute;
    top: 20px;
    left: 4px;
    opacity: 0.8;
    color: #ccc;
}

form .input-container input.invalid-email {
    animation: animateBorderColorRed 1.5s forwards;
}

.copyrighter {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.copyrighter p {
    text-align: center;
}

@keyframes animateBorderColorRed {
    from {
        border-color: transparent;
    } to {
        border-color: red;
    }
}

form .input-container input.invalid-email + label {
    animation: animateLabelOnError 1s forwards;
}

@keyframes animateLabelOnError {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    } 50% {
        transform: translateY(0);
        opacity: 1;
    } 100% {
        color: red;
    }
}

form .input-container input:focus + label,
form .input-container input:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 12px;
}

form .submit-container {
    width: 100%;
    margin-top: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

form .submit-container button[type="submit"] {
    padding: 12px 24px;
    width: 100%;
    outline: none;
    border: 2px solid transparent;
    color: #fff;
    background-color: #2c2c2c;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 10px rgba(0, 123, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

form .submit-container button[type="submit"]:hover {
    background-color: #3a3a3a;
    box-shadow:
        0 6px 14px rgba(0, 123, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

form .submit-container button[type="submit"]:active {
    background-color: #1e1e1e;
    transform: translateY(1px);
    box-shadow:
        0 2px 4px rgba(0, 123, 255, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.errors-container,
.success-container {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.success-container {
    padding: 0 25px;
    border-radius: 10px;
    border: 1.5px solid #c3e6cb;
    background-color: #d4edda;
}

p.error {
    animation: showErrorText 1s forwards;
    color: #ff4d4d;
}

@keyframes showErrorText {
    from {
        opacity: 0;
        transform: translateY(-8px);    
    } to {
        opacity: 1;
        transform: translateY(0);
    }
}

p.success {
    color: #155724;
}

p.error,
p.success {
    font-size: 15px;
    text-align: center;
}

.footer-recovery {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    flex-direction: column;
    text-wrap: wrap;
    width: 36%;
    text-align: center;
    opacity: 0.8;
}

.footer-recovery a {
    color: #ccc;
    text-decoration: none;
    font-style: italic;
    font-size: 15px;
}

.footer-recovery a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer-links {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.footer-links a {
    width: 50%;
    border-radius: 10px;
    outline: none;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background-color: #fff;
    color: #000;
    border: 1.5px solid #000;
    padding: 10px 25px;
    font-size: 16px;
}

.footer-links a:hover {
    filter: brightness(.8);
}

@media screen and (max-width: 810px) {
    h1 {
        font-size: 8vw;
    }
}

@media screen and (max-width: 768px) {
    .header-recovery p {
        width: 100%;
    }

    form {
        width: 100%;
    }

    .footer-recovery {
        width: 100%;
    }

    .logotip {
        width: 100vw;
    }

    .footer-links,
    .footer-links a {
        width: 100%;
    }
}
