:root {
    --primary-blue: rgb(18, 117, 132);
    --secondary-blue: #2c6aa0;
    --light-blue: #e8f1f9;
    --accent-blue: rgb(19, 131, 149);
    --dark-blue: #0d47a1;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../../img/fondo.png') center/cover no-repeat;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.8s ease-out;
}

.login-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-header h2 {
    margin: 0;
    font-weight: 600;
}

.login-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.login-body {
    padding: 25px;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-control {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.25rem rgba(26, 79, 139, 0.25);
}

.input-group-text {
    background-color: white;
    border-right: none;
    color: var(--accent-blue);
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
}

.btn-login {
    background-color: var(--primary-blue);
    border: none;
    color: white;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.institution-logo {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.institution-logo i {
    font-size: 40px;
    color: var(--primary-blue);
}

.back-to-login {
    color: var(--primary-blue);
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-to-login:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.form-screen {
    display: none;
}

.form-screen.active {
    display: block;
}

.password-toggle {
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.copyright {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        background: white !important;
    }

    .login-container {
        box-shadow: none;
        max-width: 100%;
    }

    .login-header {
        border-radius: 0;
    }

    .login-body {
        border-radius: 0;
        box-shadow: none;
    }

    .copyright {
        position: static;
        color: #555;
        margin-top: 20px;
    }
}