@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1D4ED8;
    --primary-hover: #1E40AF;
    --secondary: #0F172A;
    --tertiary: #0284C7;
    --neutral: #64748B;
    --background: #F1F5F9;
    --white: #FFFFFF;
    --border: #CBD5E1;
    --success: #059669;
    --danger: #DC2626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    background: linear-gradient(
        135deg, #E8EFFB, #F8FAFC
    );
    color: var(--secondary);
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Hanken Grotesk', sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.auth-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.12);
}

.auth-form-section {
    padding: 50px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.auth-brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
}

.auth-brand h2 {
    font-size: 18px;
}

.auth-brand span {
    font-size: 11px;
    color: var(--neutral);
}

.auth-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.auth-description {
    color: var(--neutral);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.auth-link {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: var(--neutral);
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.auth-info-section {
    background: linear-gradient(
        160deg, #E8EFFB, #F8FAFC
    );
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.info-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 13px;
    color: var(--neutral);
    line-height: 1.6;
}

.field-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 6px;
}

.alert-error,
.alert-success {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.alert-error {
    background: #FEE2E2;
    color: var(--danger);
}

.alert-success {
    background: #D1FAE5;
    color: var(--success);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--neutral);
}

/* Diseño para tabletas */

@media (max-width: 900px) {

    .auth-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .auth-info-section {
        padding: 30px;
    }

}

/* Diseño para celulares */

@media (max-width: 480px) {

    .auth-page {
        padding: 15px;
    }

    .auth-container {
        border-radius: 16px;
    }

    .auth-form-section {
        padding: 25px;
    }

    .auth-title {
        font-size: 28px;
    }

    .auth-info-section {
        padding: 20px;
    }

    .auth-brand img {
        width: 45px;
        height: 45px;
    }

    .auth-brand h2 {
        font-size: 15px;
    }

    .form-group input {
        font-size: 16px;
    }

}
/* Mostrar y ocultar contraseña */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 85px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--primary-hover);
}

.info-card strong {
    display: block;
    color: var(--primary);
    font-size: 15px;
    margin-top: 8px;
}

.auth-info-section h2 {
    font-size: 24px;
    color: var(--secondary);
}