﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
--primary-color: #ffffff;
--secondary-color: #3066b3;
--accent-color: #76c893;
--gold-color: #FFD700;
--dark-blue: #002366;
--light-blue: #1982c4;
--input-bg: #f8f9fa;
--input-border: #ced4da;
--focus-border: #007bff;
--hover-bg: #0056b3;
--font-title: 'Montserrat', sans-serif;
--font-text: 'Poppins', sans-serif;
--box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}

body {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
/* min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: var(--font-text);
margin: 0;
padding: 15px;*/
}

.container {
width: 100%;
max-width: 900px;
padding: 15px;
}

.book-container {
display: flex;
background-color: #fff;
box-shadow: var(--box-shadow);
border-radius: 15px;
overflow: hidden;
width: 100%;
flex-direction: column;
transition: var(--transition);
max-height: 90vh; /* Limita la altura máxima */
}

.book-page {
padding: 30px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}

.book-left {
background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-blue) 100%);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 30px 15px;
position: relative;
overflow: hidden;
}

.book-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.company-info {
position: relative;
z-index: 1;
width: 100%;
}

.company-info h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-info p {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.company-image {
width: 100%;
max-width: 180px;
height: auto;
margin-top: 15px;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
border: 2px solid var(--gold-color);
}

.book-right {
background: linear-gradient(to right, var(--light-blue), var(--secondary-color));
display: flex;
flex-direction: column;
justify-content: center;
}

.login-form {
width: 100%;
max-width: 350px;
margin: 0 auto;
}

.login-form h1 {
font-size: 2rem;
margin-bottom: 20px;
color: var(--primary-color);
font-family: var(--font-title);
text-align: center;
position: relative;
padding-bottom: 10px;
}

.login-form h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-color);
    border-radius: 2px;
}

.bi-person-circle {
font-size: 3.5rem;
color: var(--primary-color);
margin-bottom: 15px;
}

.login-form hr {
margin: 20px 0;
border: none;
height: 1px;
background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
}

.form-label {
color: var(--primary-color);
font-weight: 500;
margin-bottom: 6px;
display: block;
font-size: 1rem;
}

.form-control {
background-color: rgba(255,255,255,0.9);
border: none;
padding: 10px 12px;
border-radius: 6px;
transition: var(--transition);
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
font-size: 0.95rem;
margin-bottom: 15px;
height: auto;
}

.form-control:focus {
border-color: var(--gold-color);
box-shadow: 0 0 0 3px rgba(255,215,0,0.3);
outline: none;
}

.text-center a {
color: var(--primary-color);
text-decoration: none;
transition: var(--transition);
font-weight: 500;
font-size: 0.9rem;
display: inline-block;
margin-top: 15px;
}

.text-center a:hover {
color: var(--gold-color);
}

.spinner-border {
color: var(--gold-color);
width: 1rem;
height: 1rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-blue) 100%);
    color: #ffffff;
    font-weight: bold;
    font-family: var(--font-text);
} 

.btn-login:hover{
    border-color:#FFD700;
    border-block-color:#76c893;
    color:#FFD700;
}

/* Responsive adjustments */
@media (min-width: 768px) {
.book-container {
    flex-direction: row;
    max-height: 600px; /* Altura fija para desktop */
}

.book-page {
    padding: 30px;
}

.company-info h2 {
    font-size: 2rem;
}
}

/* Animations */
@keyframes rotate {
0% {
    transform: rotate(0deg);
}

100% {
    transform: rotate(360deg);
}
}

@keyframes float {
0% {
    transform: translateY(0px);
}

50% {
    transform: translateY(-8px);
}

100% {
    transform: translateY(0px);
}
}

.company-image {
animation: float 4s ease-in-out infinite;
}