/* public/css/auth.css */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7ff 0%, #e3e9ff 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1100px;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.auth-card {
    padding: 48px;
    background: white;
}

.auth-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 48px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    color: #4361ee;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.auth-brand .logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
}

.auth-brand span {
    font-weight: 800;
    font-size: 1.2rem;
    color: #1f2937;
}

.auth-form {
    width: 100%;
}

.input-with-icon {
    position: relative;
    display: flex;
    width: 100%; /* asegura mismo ancho que otros campos */
    max-width: 520px; /* igualar ancho con campos simples */
}

.input-with-icon input {
    width: 100%;
    padding-right: 44px;
    max-width: 520px; /* consistencia con campos sin icono */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.toggle-password:hover {
    background: rgba(67, 97, 238, 0.08);
    color: #4f46e5;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    max-width: 420px; /* uniforme para todos los campos */
}

.form-group input:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.forgot-link {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 18px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox input:checked + .checkmark {
    background: #4361ee;
    border-color: #4361ee;
}

.checkbox input:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #eff;
    color: #099;
    border: 1px solid #9ee;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    color: #666;
}

.auth-footer a {
    color: #4361ee;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.login-feature .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.login-feature strong {
    display: block;
    margin-bottom: 4px;
}

.login-feature small {
    color: #e5e7eb;
    display: block;
}

.meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #e5e7eb;
}

.supporting-links {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    margin-bottom: 10px;
    font-size: 14px;
}

.supporting-links a {
    color: #4361ee;
    font-weight: 600;
    text-decoration: none;
}

.supporting-links a:hover {
    text-decoration: underline;
}

.password-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 12px;
    }
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 430px;
        border-radius: 16px;
        width: 100%;
    }
    .auth-card, .auth-hero {
        padding: 24px 18px;
    }
    .auth-hero {
        order: -1;
        border-radius: 0 0 14px 14px;
        gap: 14px;
    }
    .auth-header h1 {
        font-size: 1.6rem;
    }
    .auth-header p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    .auth-wrapper {
        max-width: 400px;
        width: 100%;
        border-radius: 14px;
    }
    .auth-card, .auth-hero {
        padding: 20px 16px;
    }
    .form-group input {
        padding: 12px;
        font-size: 15px;
        box-sizing: border-box;
    }
    .btn {
        width: 100%;
        font-size: 15px;
    }
    .login-features {
        gap: 12px;
    }
    .login-feature .icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}