html, body {
    background-color: #5e706e;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin-top: -50px;
}

#formContent {
    background-color: #e8edec;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(92, 111, 108, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    margin-right: -2rem;
    margin-left: -2rem;
}

.logo {
    max-width: 100%;
    height: auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #849d9a;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #2c3e50;
}

.form-control:focus {
    border-color: #5c6f6c;
    box-shadow: 0 0 0 0.2rem rgba(92, 111, 108, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #849d9a;
}

.btn-primary {
    background-color: #d4a373;
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #c49262;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(92, 111, 108, 0.2);
}

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

.forgot-password {
    color: #5c6f6c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #d4a373;
    text-decoration: none;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Estilos para el checkbox de "Recordarme" */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    border: 2px solid #849d9a;
    border-radius: 3px;
    cursor: pointer;
}

.form-check-label {
    color: #5c6f6c;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 576px) {
    #formContent {
        padding: 1.5rem;
        margin: 1rem;
    }

    .logo {
        max-width: 150px;
    }

    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .alert {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* Animaciones */
.fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

/* Simple CSS3 Fade-in Animation */
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.fadeIn {
    opacity:0;
    -webkit-animation:fadeIn ease-in 1;
    -moz-animation:fadeIn ease-in 1;
    animation:fadeIn ease-in 1;

    -webkit-animation-fill-mode:forwards;
    -moz-animation-fill-mode:forwards;
    animation-fill-mode:forwards;

    -webkit-animation-duration:1s;
    -moz-animation-duration:1s;
    animation-duration:1s;
}

.fadeIn.first {
    -webkit-animation-delay: 0.4s;
    -moz-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.fadeIn.second {
    -webkit-animation-delay: 0.6s;
    -moz-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.fadeIn.third {
    -webkit-animation-delay: 0.8s;
    -moz-animation-delay: 0.8s;
    animation-delay: 0.8s;
}

.fadeIn.fourth {
    -webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    animation-delay: 1s;
}

/* Simple CSS3 Fade-in Animation */
.underlineHover:after {
    display: block;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background-color: #56baed;
    content: "";
    transition: width 0.2s;
}

.underlineHover:hover {
    color: #0d0d0d;
}

.underlineHover:hover:after{
    width: 100%;
}

*:focus {
    outline: none;
}

#icon {
    width:60%;
}