@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --error: #ef4444;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body.auth-page {
    background-color: var(--bg-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    height: 600px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}


.auth-info-side {
    flex: 1;
    background: linear-gradient(135deg, #023020 0%, #00aaff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
}

.auth-info-side h1 { font-size: 36px; margin-bottom: 20px; font-weight: 700; }
.auth-info-side p { font-size: 18px; opacity: 0.9; line-height: 1.6; }

.auth-form-side {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: var(--white);
}

.auth-box { width: 100%; max-width: 340px; }

.form-header { margin-bottom: 32px; }
.form-header h2 { font-size: 24px; color: var(--text-dark); margin-bottom: 8px; }
.form-header p { color: var(--text-muted); font-size: 14px; }

.form-group { margin-bottom: 20px; transition: all 0.4s ease; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-group label i { margin-right: 5px; color: var(--primary); }

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}


.slide-off { display: none; opacity: 0; transform: translateY(-10px); }
.slide-on { display: block; opacity: 1; transform: translateY(0); animation: fadeIn 0.4s forwards; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #023020 0%, #00aaff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-auth:hover { background: var(--primary-dark); transform: translateY(-1px); }

.auth-footer { margin-top: 24px; text-align: center; font-size: 14px; }
.auth-footer a { color: #00aaff; text-decoration: none; font-weight: 600; margin-left: 5px; }

/* Responsividad */
@media (max-width: 768px) {
    .auth-info-side { display: none; }
    .auth-container { max-width: 450px; height: auto; }
}

.msg-error { color: var(--error); font-size: 13px; margin-top: 10px; display: none; text-align: center; }
.msg-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}