* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto';
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(rgba(31, 58, 101, 0.8), rgba(31, 58, 101, 0.9)),
                url("../Imagenes/fondo_1.png") no-repeat center center;
    background-size: cover;
    background-position: center;
    font-family: 'Roboto', sans-serif;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
   
}

.logo {
    height: 120px;
    width: auto;

    transition: transform 0.3s ease;
}




.container {
    width: min(420px, 90%);
    background-color: rgba(31, 58, 101, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: #fff;
    border-radius: 20px;
    padding: clamp(20px, 5vw, 40px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.6s ease;
}

.container h1 {
    font-size: clamp(28px, 5vw, 36px);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container .input-box {

    position: relative;
    width: 100%;
    height: 50px;
    margin: 20px 0;


}

.input-box input {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: clamp(14px, 4vw, 16px);
    color: #fff;
    padding: 20px 45px 20px 20px;
    transition: all 0.3s ease;
}

.input-box input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.input-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.input-box:focus-within i {
    color: #fff;
}

.container .Remember {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 0 7px 25px;
}

.container .Forgot-password {

    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: -15px 10px 15px;
}

.Forgot-password a {

    color: #fff;
    text-decoration: none;
}

.Forgot-password a:hover {

    text-decoration: underline;
    color: cornflowerblue;
}



.container .btn {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, #4a90e2, #1f3a65);
    border: none;
    outline: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: clamp(14px, 4vw, 16px);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #3a71af, #2d4c83);
}

.container .contact {

    font-size: 15px;
    text-align: center;
    margin: 20px 0 15px;
}

.contact p a {

    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.contact p a:hover {

    text-decoration: underline;
    color: cornflowerblue;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modales */
.modal-mensaje {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 58, 101, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-msj {
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(20px, 5vw, 30px);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: min(90%, 400px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.4s ease;
}

.icon {
    margin-bottom: 20px;
}

.icon i {
    font-size: clamp(40px, 8vw, 50px);
    color: #1f3a65;
    animation: fadeIn 0.6s ease;
}

.modal-msj h3 {
    color: #1f3a65;
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 15px;
}

.modal-msj p {
    color: #666;
    margin-bottom: 20px;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.5;
}

.close-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4a90e2, #1f3a65);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: clamp(14px, 4vw, 16px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 58, 101, 0.3);
    background: linear-gradient(135deg, #1f3a65, #4a90e2);
}