* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f6f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* -------------------------------------------------------------------------------------- */
#navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 15.9%;
    background: #f6f9fc;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: transform 0.3s ease, background 0.3s ease;
}

#navbar.hide {
    transform: translateY(-100%);
}

/* Logo con branding fuerte */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.05));
}

/* Menú principal */
nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: #0A2F47;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #46B6CC;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #1F667A;
}

nav a:hover::after {
    width: 100%;
}

/* Botones de acceso */
.auth-buttons a {
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(10, 47, 71, 0.1);
}

.login {
    background: transparent;
    color: #0A2F47;
    border: 1px solid #0A2F47;
}

.login:hover {
    background-color: #EDF2F7;
}

.register {
    background: linear-gradient(135deg, #1F667A, #46B6CC);
    color: white;
    border: none;
}

.register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 102, 122, 0.25);
}

/* -------------------------------------------------------------------------------------- */
.login-wrapper {
    display: flex;
    max-width: 1000px;
    height: 600px;
    width: 90%;
    margin-top: 1rem;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    align-items: stretch;
}

.login-image {
    flex: 1;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-container {
    background: white;
    border-radius: 0px;
    border-left: 10px solid #0A2F47;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    height: 100%;
    max-width: 500px;
    text-align: center;
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsivo */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
    }

    .login-image {
        height: 200px;
    }

    .login-image img {
        height: 100%;
        object-fit: cover;
    }
}

h2 {
    color: #0A2F47;
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-weight: 600;
    color: #0A2F47;
    margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    width: 100%;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-options a {
    color: #1F667A;
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

.cta-primary {
    background-color: #0A2F47;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-primary:hover {
    background-color: #143b54;
}

.register-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #555;
}

.register-link a {
    color: #1F667A;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------------------- */
.input-error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------------------- */
.login-container p {
    font-size: 0.95rem;
    color: #555;
}