/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a, #0d1117);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor principal */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1400px;
    gap: 80px;
}

/* Sección izquierda más grande */
.brand-section {
    color: white;
    max-width: 650px;
}

/* Logo más grande */
.logo {
    width: 280px;
    margin-bottom: 35px;
}

/* Título más imponente */
.brand-section h1 {
    font-size: 56px;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Subtítulo más visible */
.brand-section p {
    font-size: 22px;
    opacity: 0.85;
    line-height: 1.5;
}

/* Tarjeta más grande */
.form-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 55px;
    border-radius: 20px;
    width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

/* Título del form */
.form-card h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 26px;
}

/* Inputs */
.form-card input {
    width: 100%;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: 0.3s ease;
}

.form-card input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Contenedor de contraseña con ojo */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

/* Botón */
.form-card button {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.form-card button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.4);
}

/* Mensajes de éxito o error */
.mensaje-exito {
    color: #166534; /* verde texto más oscuro */
    background-color: #d1fae5; /* verde suave */
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.mensaje-error {
    color: #b91c1c; /* rojo texto */
    background-color: #fee2e2; /* rojo suave */
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {

    .container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .brand-section {
        max-width: 100%;
    }

    .logo {
        width: 220px;
    }

    .brand-section h1 {
        font-size: 40px;
    }

    .brand-section p {
        font-size: 18px;
    }

    .form-card {
        width: 100%;
        max-width: 500px;
    }
}