﻿body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fc 0%, #e6f0f9 100%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #54565b;
    background-attachment: fixed;
}

.login-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 70, 122, 0.12);
    width: 400px;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 30px;
}

    .logo img {
        height: 50px;
    }

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #00467A;
}

.description {
    color: #54565b;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

.ms-login-btn {
    background-color: #00467A;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 70, 122, 0.2);
    margin-bottom: 20px;
    text-decoration: none;
}

    .ms-login-btn:hover {
        background-color: #002856;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 40, 86, 0.25);
        color: white;
    }

.ms-logo {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.error-message {
    color: #d83b01;
    font-size: 14px;
    margin-top: 10px;
    display: none;
    background-color: #fef6f3;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #d83b01;
}

.success-message {
    color: #107c10;
    font-size: 14px;
    margin-top: 10px;
    display: none;
    background-color: #f3fff3;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #107c10;
}

.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #54565b;
    opacity: 0.8;
}

.login-container:before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(0,70,122,0.08) 0%, rgba(0,70,122,0) 100%);
    z-index: -1;
    border-radius: 10px;
}

.help-text {
    font-size: 13px;
    color: #54565b;
    margin-top: 20px;
}

    .help-text a {
        color: #00467A;
        text-decoration: none;
        font-weight: 500;
    }

        .help-text a:hover {
            text-decoration: underline;
            color: #002856;
        }

/* Acento dorado sutil para medicina */
.login-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #00467a;/*linear-gradient(90deg, #00467A 0%, #ffcc00 50%, #00467A 100%);*/
    border-radius: 8px 8px 0 0;
    z-index: 2;
}

/* Mejorar el enfoque para accesibilidad */
.ms-login-btn:focus {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

/* Animación sutil del logo */
.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Estado de carga del botón */
.ms-login-btn:disabled {
    background-color: #54565b;
    cursor: not-allowed;
    transform: none;
}

.loading {
    opacity: 0.7;
}

    .loading::after {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-left: 8px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 1s ease-in-out infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Panel de usuario autenticado */
.welcome-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 70, 122, 0.12);
    width: 500px;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

    .welcome-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: #00467a;
        border-radius: 8px 8px 0 0;
        z-index: 2;
    }

.user-info {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fc;
    border-radius: 8px;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    color: #00467A;
    margin-bottom: 5px;
}

.user-email {
    font-size: 14px;
    color: #54565b;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #00467A;
    color: white;
}

    .btn-primary:hover {
        background-color: #002856;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 40, 86, 0.25);
        color: white;
    }

.btn-secondary {
    background-color: #f0f0f0;
    color: #54565b;
}

    .btn-secondary:hover {
        background-color: #e0e0e0;
        color: #54565b;
    }

.icon {
    margin-right: 8px;
}

/* Indicador de desarrollo */
.dev-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff9800;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}