:root {
    --primary-teal: #008080;
    --dark-gray: #4a4a4a;
    --input-gray: #6b7280;
    --accent-red: #c0392b;
    --bg-color: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

/* Franjas decorativas superior e inferior */
.top-header {
    background-color: #00838f;
    color: #ffffff;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: bold;
}

.bottom-footer {
    background-color: #00838f;
    height: 15px;
    width: 100%;
}

/* Contenedor principal */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.sub-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 40px;
    text-align: center;
}

/* Layout de dos columnas estilo grid */
.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-items: center;
    position: relative;
}

/* Línea divisoria vertical central (similar a la imagen) */
.login-grid::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #d1d5db;
}

/* Columna Izquierda */
.doctor-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 40px;
}

.logo-container {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
}

.medical-logo {
    width: 100%;
    height: 100%;
}

.doctor-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.doctor-specialty {
    font-size: 0.85rem;
    color: var(--accent-red);
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.doctor-credentials {
    display: flex;
    flex-direction: column;
    font-size: 0.65rem;
    color: var(--dark-gray);
    gap: 3px;
    font-weight: 600;
}

/* Columna Derecha: Formulario */
.login-form-section {
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    width: 100%;
    max-width: 380px;
}

.form-group label {
    width: 110px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #222;
}

.form-group input {
    flex: 1;
    padding: 10px 12px;
    background-color: var(--input-gray);
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    border-radius: 2px;
}

.form-group input:focus {
    background-color: #4b5563;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    max-width: 380px;
    margin-top: 10px;
}

.btn-login {
    background-color: #1d4ed8;
    color: white;
    border: none;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: #1e40af;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 8px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border-radius: 4px;
    max-width: 380px;
    text-align: center;
}

/* Diseño Responsivo para Móviles y Tablets */
@media (max-width: 768px) {
    .login-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-grid::after {
        display: none; /* Oculta la línea vertical en pantallas pequeñas */
    }

    .doctor-info-section {
        padding-right: 0;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 25px;
    }

    .login-form-section {
        padding-left: 0;
        align-items: center;
    }

    .form-group, .form-actions, .alert-error {
        width: 100%;
        max-width: 100%;
    }
}