:root {
    --white: #FFFFFF;
    --black: #000000;
    --very-light-pink: #C7C7C7;
    --text-input-field: #dedbdb;
    --hospital-green: #0816cf;
    --sm: 14px;
    --md: 16px;
    --lg: 18px;
}

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    
}

.login {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.3) 0%, rgba(80, 80, 80, 0.2) 100%),
                url("/static/img/tapiceria-lefarc.398df09b529c.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 20px;
}

.form-container {
    display: grid;
    background-color: white;
    grid-template-rows: auto 1fr auto;
    width: 300px;
    height: 350px;
    border-radius: 10px;
    padding: 4px;
    padding-top: 20px;
}

/* Nuevo diseño v2 */
.form-container-v2 {
    background-color: white;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 0;
}

.login-form {
    width: 100%;
}

.input-group-v2 {
    margin-bottom: 20px;
}

.label-v2 {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.label-v2 i {
    color: var(--hospital-green);
    margin-right: 6px;
}

.input-v2 {
    width: 100%;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    height: 48px;
    font-size: 15px;
    padding: 0 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-v2:focus {
    outline: none;
    border-color: var(--hospital-green);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(8, 22, 207, 0.1);
}

.forgot-password-container {
    text-align: right;
    margin-bottom: 24px;
}

.forgot-password-link {
    color: var(--hospital-green);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: #0612a0;
    text-decoration: underline;
}

.primary-button-v2 {
    background: linear-gradient(135deg, var(--hospital-green) 0%, #0612a0 100%);
    border-radius: 10px;
    border: none;
    color: white;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    height: 52px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 22, 207, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-button-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 22, 207, 0.4);
}

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

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider span {
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.secondary-button-v2 {
    background-color: white;
    border-radius: 10px;
    border: 2px solid var(--hospital-green);
    color: var(--hospital-green);
    width: 100%;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    height: 52px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-button-v2:hover {
    background-color: var(--hospital-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 22, 207, 0.2);
}

.version-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.card {
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
.form-check-label {
    font-size: 1.2rem;
  }
  
.logo {
    width: 150px;
    margin-bottom: 48px;
    justify-self: center;
    display: none;
}

.form {
    display: flex;
    flex-direction: column;
}
.form a {
    color: var(--hospital-green);
    font-size: var(--sm);
    text-align: center;
    text-decoration: none;
    margin-bottom: 52px;
}
.label {
    font-size: var(--sm);
    font-weight: bold;
    margin-bottom: 4px;
}
.input {
    background-color: var(--text-input-field);
    border: none;
    border-radius: 8px;
    height: 30px;
    font-size: var(--md);
    padding: 6px;
    margin-bottom: 12px;
}
.input-email {
    margin-bottom: 22px;
}
.primary-button {
    background-color: var(--hospital-green);
    border-radius: 8px;
    border: none;
    color: var(--white);
    width: 100%;
    cursor: pointer;
    font-size: var(--md);
    font-weight: bold;
    height: 50px;
}
.secondary-button {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--hospital-green);
    color: var(--hospital-green);
    width: 100%;
    cursor: pointer;
    font-size: var(--md);
    font-weight: bold;
    height: 50px;
}
.login-button {
    margin-top: 14px;
    margin-bottom: 30px;
}
@media (max-width: 640px) {
    .logo {
        display: block;
    }

    .form-container-v2 {
        padding: 30px 24px;
        max-width: 100%;
        margin: 0 10px;
    }

    .login-logo {
        width: 100px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .primary-button-v2,
    .secondary-button-v2 {
        height: 48px;
        font-size: 15px;
    }

    .version-badge {
        bottom: 12px;
        right: 12px;
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .login {
        padding: 10px;
    }

    .form-container-v2 {
        padding: 24px 20px;
    }

    .login-logo {
        width: 80px;
        margin-bottom: 16px;
    }

    .login-title {
        font-size: 22px;
    }
}

