﻿/*Columna derecha*/
.login-right {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--surface-bg, #f0f4f8);
}

/*Card del formulario*/
.login-card {
    background: var(--hot-bg, #ffffff);
    border: 1px solid var(--surface-border, rgba(0,0,0,0.10));
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 2.5rem 5.25rem 2.5rem;
    width: 100%;
    max-width: 600px;
}

/*Título*/
.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--surface-fg, #111827);
    text-align: center;
    margin: 0 0 3.5rem;
}

/*Campos*/
.login-field {
    margin-bottom: 1rem;
    position: relative;
}

.login-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--surface-fg, #111827) 80%, transparent);
    margin-bottom: 0.35rem;
}

.login-field .form-control {
    background: transparent;
    color: var(--input-fg, var(--surface-fg, #111827));
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    padding: 0.65rem 0.25rem;
    font-size: 0.9375rem;
    width: 100%;
    transition: box-shadow 0.18s ease;
}

.login-field .form-control:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

/*Campo contraseña*/
.login-field--password .form-control {
    padding-right: 2.75rem;
}

/*Wrapper líneas animadas*/
.login-line-wrap {
    position: relative;
}

.login-line-wrap .login-line--gray {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    pointer-events: none;
    clip-path: polygon(3px 0%, calc(100% - 3px) 0%, 100% 100%, 0% 100%);
    background: var(--input-border, rgba(0,0,0,0.25));
    z-index: 1;
}

.login-line-wrap .login-line--blue {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    pointer-events: none;
    clip-path: polygon(3px 0%, calc(100% - 3px) 0%, 100% 100%, 0% 100%);
    background: var(--color-primary, #4972b1);
    z-index: 2;
    transition: width 0.5s ease, left 0.5s ease;
}

.login-line-wrap .login-line--blue.is-active {
    width: 100%;
    left: 0;
}

/*Toggle contraseña*/
.login-pwd-toggle {
    position: absolute;
    right: 0.75rem;
    bottom: 0.6rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: color-mix(in srgb, var(--surface-fg, #111827) 45%, transparent);
    display: flex;
    align-items: center;
    line-height: 1;
    transition: color 0.15s ease;
}

.login-pwd-toggle:hover,
.login-pwd-toggle:focus {
    color: var(--color-primary, #4972b1);
    outline: none;
}

/*Fila remember y forgot*/
.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0 1.5rem;
    font-size: 0.8125rem;
}

.login-meta .form-check-label {
    color: color-mix(in srgb, var(--surface-fg, #111827) 75%, transparent);
    font-size: 0.8125rem;
}

.login-meta a {
    color: var(--color-primary, #4972b1);
    text-decoration: none;
    font-weight: 500;
}

.login-meta a:hover {
    text-decoration: underline;
}

/*Botón submit*/
.login-btn {
    width: 100%;
    padding: 0.65rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md, 8px);
    background: var(--color-primary, #4972b1);
    color: var(--on-primary, #fff);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.login-btn:hover:not(:disabled) {
    background: color-mix(in srgb, var(--color-primary, #4972b1) 82%, black);
}

.login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/*Spinner dentro del botón*/
.login-btn .login-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
    display: none;
}

.login-btn.is-loading .login-spinner { display: inline-block; }
.login-btn.is-loading .login-btn-text { opacity: 0.75; }

@keyframes login-spin {
    to { transform: rotate(360deg); }
}

/*Separador*/
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.8rem;
    color: color-mix(in srgb, var(--surface-fg, #111827) 45%, transparent);
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--surface-border, rgba(0,0,0,0.10));
}

/*Botón Google*/
.login-google-btn {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md, 8px);
    background: var(--hot-bg, #ffffff);
    color: var(--surface-fg, #111827);
    border: 1.5px solid var(--surface-border, rgba(0,0,0,0.18));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.login-google-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    background: conic-gradient(
        from 180deg,
        #EA4335 0deg,
        #FBBC05 90deg,
        #34A853 180deg,
        #4285F4 270deg,
        #EA4335 360deg
    );
    z-index: -1;
    opacity: 0;
    transform: rotate(-90deg) scale(0.3);
    transform-origin: center;
    transition: opacity 0.7s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: blur(6px) brightness(1.2) saturate(1.4);
}

.login-google-btn::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: calc(var(--radius-md, 8px) - 1.5px);
    background: var(--hot-bg, #ffffff);
    z-index: -1;
}

.login-google-btn:hover {
    border-color: transparent;
}

.login-google-btn:hover::before {
    opacity: 1;
    transform: rotate(0deg) scale(1.1);
    filter: blur(8px) brightness(1) saturate(1.5);
}

/*Links de pie*/
.login-footer-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.25rem;
}

.login-footer-links a {
    color: color-mix(in srgb, var(--surface-fg, #111827) 65%, transparent);
    text-decoration: none;
}

.login-footer-links a:hover {
    color: var(--color-primary, #4972b1);
    text-decoration: underline;
}

/*Errores*/
.login-card .text-danger {
    font-size: 0.8rem;
    margin-top: 0.2rem;
    display: block;
}

.login-card .validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
}

/*Sidebar*/
#login_sidebar {
    min-height: 100vh;
}

/*Iconos en inputs*/
.login-line-wrap--icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.login-input-icon {
    font-size: 1rem;
    color: color-mix(in srgb, var(--surface-fg, #111827) 40%, transparent);
    flex-shrink: 0;
    transition: color 0.18s ease;
    padding-left: 15px;
    padding-right: 5px;
}

.login-line-wrap--icon:focus-within .login-input-icon {
    color: var(--color-primary, #4972b1);
}

.form-control--icon {
    flex: 1;
}

@media (max-width: 767px) {
    #login_sidebar {
        min-height: 200px;
        padding: 2rem 1rem;
    }

    .login-right {
        min-height: auto;
        padding: 2rem 1rem;
    }
}

body:has(.login-root),
body:has(.login-right) {
    margin-bottom: 0 !important;
    overflow: hidden;
}


