/* ==========================================================================
   PÁGINA DE LOGIN - SISTEMA DE GESTIÓN DE OBRAS DE CONSTRUCCIÓN
   ========================================================================== */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --color-primary: #0f172a;        /* Deep Slate */
    --color-primary-dark: #020617;
    --color-accent: #f59e0b;         /* Amber Construction */
    --color-accent-hover: #d97706;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
}

.login-panel {
    width: 100%;
    max-width: 1050px;
    background: var(--bg-surface);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    display: flex;
    overflow: hidden;
    min-height: 600px;
}

/* Lado decorativo / Branding */
.login-branding {
    flex: 1.1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0b1324 100%);
    color: #ffffff;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 2;
}

.branding-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #ea580c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

.login-branding h1 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.login-branding p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature i {
    color: var(--color-accent);
    font-size: 1.25rem;
}

/* Área del formulario */
.login-form-area {
    flex: 1;
    padding: 3.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Estilos de inputs flotantes */
.form-floating > .form-control {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    height: 56px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.form-floating > label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-login {
    height: 52px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 860px) {
    .login-panel {
        flex-direction: column;
        max-width: 480px;
    }

    .login-branding {
        padding: 2.5rem 2rem;
        text-align: center;
        align-items: center;
    }

    .branding-icon {
        margin: 0 auto 1.5rem auto;
    }

    .branding-features {
        display: none;
    }

    .login-form-area {
        padding: 2.5rem 2rem;
    }
}
