/* log.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #f0eeee, #f0eeee);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
}

/* Agregar estas reglas al CSS existente */
body::before,
body::after {
    /* Animación flotante */
    animation: float 20s infinite linear;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(3deg); }
}

/* Nuevas formas geométricas */
.shape-overlay {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    animation: pulse 15s infinite alternate;
}

/* Formas específicas para Login */
.login .shape-overlay:nth-child(1) {
    width: 400px;
    height: 400px;
    background: linear-gradient(#2d6da3, #0a2d52);
    border-radius: 50%;
    bottom: -15%;
    right: -10%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

/* Formas específicas para Register */
.register .shape-overlay:nth-child(1) {
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, #2d6da3, #0a2d52);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: 10%;
    left: 5%;
}

.register .shape-overlay:nth-child(2) {
    width: 120px;
    height: 120px;
    background: #1a4a7a;
    border-radius: 50%;
    bottom: 15%;
    right: 8%;
    animation: rotate 20s linear infinite;
}

/* Nuevas animaciones */
@keyframes pulse {
    0% { transform: scale(0.95); }
    100% { transform: scale(1.1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Efecto de textura sutil */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(10, 45, 82, 0.05) 1px, transparent 1px),
        radial-gradient(rgba(10, 45, 82, 0.05) 1px, transparent 1px);
    background-position: 0 0, 25px 25px;
    background-size: 50px 50px;
    z-index: 0;
}

/* Formas de fondo */
body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(#2d6da3, #0a2d52);
    border-radius: 50%;
    top: -20%;
    left: -10%;
    opacity: 0.1;
}

body::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, #2d6da3, #0a2d52);
    border-radius: 30% 70% 70% 30%;
    bottom: -20%;
    right: -10%;
    opacity: 0.1;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    padding-top: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Diferenciación entre Login y Register */
.login .container {
    border-top: 5px solid #0a2d52;
}

.register .container {
    border-top: 5px solid #2d6da3;
}

.company-name {
    position: absolute;
    top: calc(50% - 220px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #0a2d52, #2d6da3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 5px;
    z-index: 3;
    text-align: center;
    white-space: nowrap;
    padding: 0 30px;
    line-height: 1;
    pointer-events: none;
}

.title {
    color: #0a2d52;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2em;
    width: 100%;
}

.form {
    width: 100%;
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    color: #1a4a7a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0a2d52;
    opacity: 0.7;
}

.password-wrapper {
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #0a2d52;
    box-shadow: 0 0 8px rgba(10, 45, 82, 0.2);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #0a2d52;
    opacity: 0.7;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #0a2d52;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1a4a7a;
    box-shadow: 0 5px 15px rgba(10, 45, 82, 0.3);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert-error {
    background: #ffe6e6;
    color: #cc0000;
    border: 1px solid #ffcccc;
}

.alert-success {
    background: #e6ffe6;
    color: #009900;
    border: 1px solid #ccffcc;
}

.login .container:hover {
    transform: translate(-50%, -50%) translateY(-5px);
}

/* Estilos específicos para Register */
/* Añadir estos estilos al CSS existente */
.register .container {
    border-top: 5px solid #2d6da3;
}

.register .title {
    color: #2d6da3;
}

.register .btn-primary {
    background: #2d6da3;
    letter-spacing: 0.5px;
}

.register .btn-primary:hover {
    background: #3b8bc4;
}

.register input:focus {
    border-color: #2d6da3;
    box-shadow: 0 0 8px rgba(45, 109, 163, 0.3);
}

.link {
    text-align: center;
    margin-top: 1.5rem;
    color: #1a4a7a;
}

.link a {
    color: #2d6da3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link a:hover {
    color: #3b8bc4;
    text-decoration: underline;
}

/* Animación adicional para el container */
.register .container:hover {
    transform: translate(-50%, -50%) translateY(-5px);
}

/* Estilos para el selector de idioma en login */
.language-selector-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #0a2d52;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0a2d52;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.language-switcher:hover {
    background: #0a2d52;
    color: white;
    box-shadow: 0 4px 12px rgba(10, 45, 82, 0.3);
}

.language-switcher:focus {
    outline: none;
    border-color: #2d6da3;
    box-shadow: 0 0 8px rgba(45, 109, 163, 0.3);
}

.language-switcher option {
    background: white;
    color: #0a2d52;
    padding: 8px;
}