﻿/* ==========================================
   ORTODENT - Login Styles
   ========================================== */

:root {
    --primary-blue: #0052A3;
    --light-bg: #E8F1F8;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --border-color: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ==========================================
   LOGIN CONTAINER
   ========================================== */

.login-container {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

/* ==========================================
   PANEL IZQUIERDO (AZUL)
   ========================================== */

.login-left {
    background: var(--primary-blue);
    color: white;
    padding: 60px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-container {
    background: white;
    padding: 20px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .logo-container img {
        max-width: 200px;
        height: auto;
        display: block;
    }

.login-left h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.login-left p {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* ==========================================
   PANEL DERECHO (FORMULARIO)
   ========================================== */

.login-right {
    padding: 60px 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-right h3 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: var(--text-dark);
    }

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 0.95rem;
}

/* ==========================================
   FORMULARIO
   ========================================== */

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(0, 82, 163, 0.1);
    }

    .form-control::placeholder {
        color: #CBD5E0;
    }

.mb-3 {
    margin-bottom: 20px;
}

/* Campo de contraseña con ícono */
.password-container {
    position: relative;
}

    .password-container input {
        padding-right: 45px;
    }

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s;
}

    .toggle-password:hover {
        color: var(--primary-blue);
    }

/* Checkbox recordarme */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

    .form-check-input:checked {
        background-color: var(--primary-blue);
        border-color: var(--primary-blue);
    }

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Link olvidaste contraseña */
.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

    .forgot-password:hover {
        text-decoration: underline;
        color: #003d7a;
    }

.text-end {
    text-align: right;
}

/* Botón de login */
.btn-login {
    background: var(--primary-blue);
    color: white;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    width: 100%;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-login:hover {
        background: #003d7a;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 82, 163, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* Mensajes de error/éxito */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.btn-close {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

    .btn-close:hover {
        opacity: 1;
    }

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .login-container {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
    }

    .login-left {
        padding: 40px 30px;
        min-height: auto;
    }

        .login-left h2 {
            font-size: 1.5rem;
        }

        .login-left p {
            font-size: 0.95rem;
        }

    .logo-container {
        padding: 15px 30px;
        margin-bottom: 30px;
    }

        .logo-container img {
            max-width: 160px;
        }

    .login-right {
        padding: 40px 30px;
    }

        .login-right h3 {
            font-size: 1.5rem;
        }

    .btn-login {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 30px 20px;
    }

    .login-right {
        padding: 30px 20px;
    }

    .logo-container img {
        max-width: 140px;
    }

    .login-left h2 {
        font-size: 1.3rem;
    }
}
