﻿

.divPrincipalLogin {
    /*display: flex;*/
    justify-content: center; /* Horizontal */
    align-items: center;  /*Vertical */
    height: 70vh;
}

.divPrincipalLogin2 {
    /*display: flex;*/
    justify-content: center; /* Horizontal */
    align-items: center; /*Vertical */
    height: 50vh;
}

.divPrincipalInicio {
    justify-content: center; /* Horizontal */
    align-items: center; /*Vertical */
    height: 70vh;
}

.SecImgInicio {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
}

.SecImgContacto {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30vh;
}

.SecImg {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25vh;
}

.SecChecks {
    margin: 15px 15px 15px 15px;
}

.LoginForm {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 80vh;*/
}

/* Formulario Login */

/* From Uiverse.io by kyle1dev */
.modern-form {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.1);
    --success: #10b981;
    --text-main: #1e293b;
    --text-secondary: #64748b;
    --bg-input: #f8fafc;
    position: relative;
    width: 300px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(21, 40, 75, 0.1);
    font-family: system-ui, -apple-system, sans-serif;
}

.form-title {
    font-size: 22px;
    /*font-weight: 600;*/
    color: #15284B;
    margin: 0 0 24px;
    text-align: center;
    letter-spacing: -0.01em;
}

.input-group {
    margin-bottom: 16px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 0px 50px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-main);
    transition: all 0.2s ease;
}

    .form-input::placeholder {
        color: var(--text-secondary);
    }

.input-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    padding: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.eye-icon {
    width: 16px;
    height: 16px;
}

.submit-button {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: 8px;
    background: #15284B;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.button-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.form-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

.login-link {
    color: #15284B;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .login-link span {
        color: #15284B;
        font-weight: 500;
    }

/* Hover & Focus States */
.form-input:hover {
    border-color: #cbd5e1;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.password-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.submit-button:hover {
    background: #15284B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), 0 2px 4px rgba(59, 130, 246, 0.15);
}

    .submit-button:hover .button-glow {
        transform: translateX(100%);
    }

.login-link:hover {
    color: #15284B;
}

    .login-link:hover span {
        color: #15284B;
    }

/* Active States */
.submit-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.password-toggle:active {
    transform: scale(0.9);
}

/* Validation States */
.form-input:not(:placeholder-shown):valid {
    border-color: var(--success);
}

    .form-input:not(:placeholder-shown):valid ~ .input-icon {
        color: var(--success);
    }

/* Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.form-input:not(:placeholder-shown):invalid {
    border-color: #ef4444;
    animation: shake 0.2s ease-in-out;
}

    .form-input:not(:placeholder-shown):invalid ~ .input-icon {
        color: #ef4444;
    }
