﻿<style> 
:root {
        --primary: #2563eb;
        --radius: 0.75rem;
    }

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-body-bg);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.login-card {
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
    max-width: 420px;
    width: 100%;
}

.auth-card {
    max-width: 420px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
}

.card-header {
    border-bottom: 1px solid var(--bs-border-color);
}

.logo {
    max-width: 110px; /* Tamaño desktop */
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 0.45rem;
}


.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

/* 📱 Optimización móvil */
@media (max-width: 576px) {
    body {
        align-items: stretch;
    }
    .login-card {
        box-shadow: none;
        border-radius: 0;
        min-height: 100vh;
    }

    .auth-card {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .btn-volver {
        top: 12px;
        left: 12px;
    }

    .logo {
        max-width: 80px;
    }
}



/* 📱 Ajuste móvil */
@media (max-width: 576px) {
    .logo {
        max-width: 90px;
    }
}


/* ===============================
   AJUSTE PARA NOTEBOOK (SIN SCROLL)
================================ */
@@media (min-height: 700px) {

    body {
        padding: 0.5rem;
    }

    .auth-card {
        max-width: 400px;
    }

    .card-header {
        padding: 1.25rem 1rem !important;
    }

    .logo {
        max-width: 85px;
        margin-bottom: 0.5rem;
    }

    .card-header h4 {
        font-size: 1.15rem;
    }

    .card-body {
        padding: 1.25rem 1.25rem 1.1rem;
    }

    .mb-3 {
        margin-bottom: 0.6rem !important;
    }

    .strength-bar {
        margin-top: 3px;
    }

    .theme-switch {
        top: 12px;
        right: 12px;
    }
}

.btn-volver {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}


/* ===============================
   HEADER COMPACTO (LOGO + TÍTULO)
================================ */
.card-header {
    padding: 1rem 1rem 0.75rem !important;
}

    .card-header .logo {
        margin-bottom: 0.4rem !important;
    }

    .card-header h4,
    .card-header h3 {
        margin-bottom: 0.25rem;
    }

    .card-header p {
        margin-bottom: 0;
        font-size: 0.85rem;
    }

@@media (min-height: 700px) {

    .card-header {
        padding-top: 0.85rem !important;
        padding-bottom: 0.6rem !important;
    }
}

/* ===============================
   LINE-HEIGHT COMPACTO Y ELEGANTE
================================ */
.card-header h3,
.card-header h4 {
    line-height: 1.15; /* antes ~1.3 */
}

.card-header p {
    line-height: 1.25; /* antes ~1.5 */
}

</style >

