
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}


.login-body {
    background-color: #f4f5f9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-wrapper {
    display: flex;
    background: white;
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex-wrap: wrap;
}


.login-left {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fc;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #eaeaea;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    color: #6a0dad;
}

.logo-info h2 {
    font-size: 18px;
    color: #111;
    margin: 0;
}

.logo-info span {
    font-size: 12px;
    color: #777;
}

/* TEXTO IZQUIERDO CENTRADO */
.login-hero-text {
    text-align: center;
    margin: auto 0; /* Centra el bloque verticalmente */
    padding: 20px 0;
}

.login-hero-text h1 {
    font-size: 2.3rem;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.2;
}

.login-hero-text h1 span {
    color: #6a0dad;
    display: block;
}

.login-hero-text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto; /* Centra el párrafo */
}


.login-right {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-form-container h2 {
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 25px;
}


.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.alert-success {
    background-color: #dcfce3;
    color: #15803d;
    border: 1px solid #4ade80;
}


.form-group-line {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group-line label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.form-group-line input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    font-size: 1rem;
    color: #111;
    background-color: transparent;
    outline: none;
    border-radius: 0;
    transition: border-bottom-color 0.3s ease;
}

.form-group-line input::placeholder {
    color: #aaa;
    font-size: 0.95rem;
}

.form-group-line input:focus {
    border-bottom: 2px solid #6a0dad;
}

.btn-submit {
    width: 100%;
    background-color: #6a0dad;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #580b94;
}

.btn-submit:active {
    transform: scale(0.98);
}

.register-redirect {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.register-redirect a {
    color: #6a0dad;
    font-weight: 600;
}

.register-redirect a:hover {
    text-decoration: underline;
}