/* ========================================
   CLEAN LOGIN - MásKFundas (Professional Light Edition)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FF6600;
    --primary-hover: #e65c00;
    --bg-body: #f4f7f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

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

body.modern-login {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 102, 0, 0.03) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(255, 102, 0, 0.02) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 102, 0, 0.03) 0, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.login-background {
    display: none;
    /* Quitamos fondos animados pesados */
}

.modern-login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Logo Section */
.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.logo-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 25px;
}

.logo-image img {
    width: 100%;
    height: auto;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Form Elements */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 16px;
    opacity: 0.7;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.forgot-password {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Button */
.btn-login {
    margin-top: 10px;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

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

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
}

/* Footer */
.login-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.login-footer strong {
    color: var(--text-main);
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    body.modern-login {
        background: #fff;
        align-items: flex-start;
        padding-top: 50px;
    }
}