﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(90deg, #1e3a5f 0%, #2d5a7b 50%, #4a9d5f 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

form {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sección del logo */
.logo-container {
    background: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.main-logo {
    height: 40px;
    max-width: 180px;
}


/* Contenedor principal de login */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Tarjeta de login */
.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header del login */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h1 {
        color: #333;
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
        font-weight: 600;
    }

    .login-header p {
        color: #666;
        font-size: 0.85rem;
    }

/* Formulario */
.login-form {
    width: 100%;
}

/* Separacion entre inputs */
.form-group {
    margin-bottom: 2rem;
}

    /* Floating Label*/
    .form-group.floating-label {
        position: relative;
    }

        .form-group.floating-label label {
            position: absolute;
            left: 0.9rem;
            top: 0.9rem;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            pointer-events: none;
            background: transparent;
            color: #666; /*color del label inicial*/
        }

    /* Inputs */
    .form-group input,
    .form-group .form-input {
        width: 100%;
        padding: 0.7rem 0.9rem;
        border: 1.5px solid #e0e0e0;
        border-radius: 8px;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        background: #f8f9fa;
        color: #666; /*color de cuando escribo*/
    }

    /* Cuando el input tiene focus O tiene contenido */
    .form-group.floating-label input:focus + label,
    .form-group.floating-label input:not(:placeholder-shown) + label {
        transform: translateY(-28px) translateX(-0.5rem);
        font-size: 0.75rem;
        background: white;
        padding: 0 0.3rem;
        Color: #4a9d5f; /*cuando selecciono*/
    }

    /* Hover del input */
    .form-group input:focus,
    .form-group .form-input:focus {
        outline: none;
        border-color: #4a9d5f;
        background: white;
        box-shadow: 0 0 0 3px rgba(74, 157, 95, 0.1);
    }

/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    cursor: pointer;
}

    .remember-me input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #667eea;
    }

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #764ba2;
        text-decoration: underline;
    }

/* Botón de login */
.btn-login {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(90deg, #1e3a5f 0%, #2d5a7b 50%, #4a9d5f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* Mensaje de error */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    padding: 0.6rem 0.8rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    font-size: 0.8rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.error-icon {
    font-size: 1.2rem;
}

/* Footer del login */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem;
}

    .login-footer a {
        text-decoration: none;
        font-weight: 500;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

/* Footer general */
.footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: white;
    font-size: 0.85rem;
}

