/* login.css - Hereda estilos de registro.css para consistencia */
:root {
    --primary-color: #1a56db;
    --primary-dark: #1e40af;
    --light-gray: #e5e7eb;
    --secondary-color: #4b5563;
    --danger-color: #dc2626;
    --radius-lg: 12px;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@font-face {
    font-family: 'Lora';
    src: url('../tipography/Lora-VariableFont_wght.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', serif;
}

body {
    background-color: #f8fafc;
    background-image: radial-gradient(at top left, #eff6ff 0%, #f8fafc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container { 
    width: 100%; 
    max-width: 400px; 
}

.login-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.header { 
    text-align: 
    center; 
    margin-bottom: 30px; 
}

.header h1 { 
    font-size: 26px; 
    color: #111827; 
    font-weight: 700; 
}

.header h1 i { 
    color: var(--primary-color); 
    margin-right: 10px; 
}

.subtitle { 
    font-size: 14px; 
    color: var(--secondary-color); 
    margin-top: 5px; 
}

.form-group { 
    margin-bottom: 20px; 
}

label { 
    display: block; 
    font-size: 14px; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #374151; 
}


.input-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
}

.input-icon { 
    position: absolute; 
    left: 14px; 
    color: var(--primary-color); 
    font-size: 16px; 
}


input {
    width: 100%;
    border: 1.5px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px 15px 12px 42px;
    font-size: 15px;
    transition: all 0.3s;
}

input:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1); 
}


.toggle-password { 
    position: absolute; 
    right: 12px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: #9ca3af; 
}

.toggle-password:hover { 
    color: var(--primary-color); 
}


.options { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    font-size: 13px; 
}

.link { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 600; 
}

.link:hover { 
    text-decoration: underline; 
}


.submit-btn {
    width: 100%; 
    background: var(--primary-color); 
    color: white; 
    border: none;
    padding: 14px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer;
    font-size: 16px; 
    transition: all 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}

.submit-btn:hover { 
    background: var(--primary-dark); 
    transform: translateY(-1px);
}

.divider { 
    text-align: center; 
    margin: 25px 0; 
    border-top: 1px solid var(--light-gray); 
    padding-top: 20px; 
}

.create-account-btn {
    display: block; 
    text-align: center; 
    width: 100%; 
    padding: 12px;
    border: 1.5px solid var(--primary-color); 
    border-radius: 8px;
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s;
}

.create-account-btn:hover { 
    background: rgba(26, 86, 219, 0.05); 
}

.error-message {
    background: #fef2f2; 
    color: var(--danger-color); 
    padding: 12px;
    border-radius: 8px; 
    border: 1px solid #fee2e2; 
    font-size: 14px;
    margin-bottom: 20px; 
    display: none; 
    text-align: center;
}

/* -------------- back button ---------- */

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-btn:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}