﻿/* ========================================================
   PLECSYS STUDIO - ESTILOS DE AUTENTICACIÓN
   ======================================================== */

/* 1. CONTENEDOR PRINCIPAL */
/* Fusionamos auth-wrapper y login-wrapper */
.auth-wrapper,
.login-wrapper {
    margin: 0 !important;
    padding: 3rem 0;
    background-color: #f4f7f6; /* Gris corporativo muy sutil */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Diseño de la tarjeta blanca (Fusiona auth-card y register-card) */
.auth-card,
.register-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 2.5rem; /* Estandarizado a 2.5rem para todas las pantallas */
    width: 100%;
}

/* 2. IDENTIDAD VISUAL */
/* Logotipo estandarizado según requerimiento */
.brand-logo {
    width: 77px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Círculos decorativos para íconos */
.icon-circle,
.icon-circle-success {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.icon-circle {
    background-color: rgba(13, 71, 161, 0.08);
}

    .icon-circle i {
        font-size: 2.5rem;
        color: #0d47a1;
    }

.icon-circle-success {
    background-color: rgba(25, 135, 84, 0.1);
}

    .icon-circle-success i {
        font-size: 2.5rem;
        color: #198754;
    }

/* 3. TIPOGRAFÍA Y TEXTOS */
.auth-title {
    color: #212529;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-text {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

/* 4. FORMULARIOS E INPUTS */
.form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilos de input generales */
.form-control {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-control:focus {
        border-color: #0d47a1;
        box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.1);
    }

/* Input Groups (Cuando traen ícono a la izquierda) */
.input-group .form-control {
    border-left: none;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #6c757d;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: #0d47a1;
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.1);
}

/* Plugin de teléfono */
.iti {
    width: 100%;
    display: block;
}

/* 5. BOTONES */
/* Estructura base para ambos botones */
.btn-plecsys,
.btn-plecsys-outline {
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    width: 100%;
    display: block;
}

/* Primario (Azul relleno) */
.btn-plecsys {
    background-color: #0d47a1;
    color: white;
    padding: 0.85rem;
    font-size: 1rem;
    border: none;
}

    .btn-plecsys:hover {
        background-color: #002171;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
    }

/* Secundario (Borde azul) */
.btn-plecsys-outline {
    color: #0d47a1;
    background-color: transparent;
    border: 2px solid #0d47a1;
    padding: 0.7rem 2rem;
    display: inline-block;
}

    .btn-plecsys-outline:hover {
        background-color: #0d47a1;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
    }

/* 6. EXTRAS (PIES DE PÁGINA Y DIVISORES) */
/* Textos pequeños con links (Términos y Footer de tarjeta) */
.auth-footer,
.terms-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

    .auth-footer a,
    .terms-text a {
        color: #0d47a1;
        font-weight: 600;
        text-decoration: none;
    }

        .auth-footer a:hover,
        .terms-text a:hover {
            text-decoration: underline;
        }

/* Línea divisoria "O continúa con" */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #adb5bd;
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

    .login-divider::before,
    .login-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #dee2e6;
    }

    .login-divider:not(:empty)::before {
        margin-right: .5em;
    }

    .login-divider:not(:empty)::after {
        margin-left: .5em;
    }
