﻿/* ============================================
   360 Excelso - Login Styles (Diseño Principal)
   Archivo CSS externo
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #7CB342;
    --dark-teal: #1a3a3a;
    --darker-teal: #0f2626;
    --accent-lime: #9CCC65;
    --light-text: #ffffff;
    --gray-text: #b0c4c4;
    --error-red: #ef5350;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(124, 179, 66, 0.2);
}

/* ============================================
   Base Styles
   ============================================ */

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--darker-teal) 0%, var(--dark-teal) 50%, #1a4040 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    /* ============================================
   Animated Background
   ============================================ */

    body::before,
    body::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        opacity: 0.03;
        animation: float 20s ease-in-out infinite;
    }

    body::before {
        width: 600px;
        height: 600px;
        background: var(--primary-green);
        top: -300px;
        right: -200px;
        animation-delay: 0s;
    }

    body::after {
        width: 400px;
        height: 400px;
        background: var(--accent-lime);
        bottom: -200px;
        left: -100px;
        animation-delay: 5s;
    }

@@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* ============================================
   Main Container
   ============================================ */

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: rgba(15, 38, 38, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(124, 179, 66, 0.1);
    animation: slideUp 0.8s ease-out;
}

@@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Left Panel
   ============================================ */

.left-panel {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(26, 58, 58, 0.8) 0%, rgba(15, 38, 38, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

    .left-panel::before {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(124, 179, 66, 0.15) 0%, transparent 70%);
        top: -100px;
        left: -100px;
        animation: pulse 4s ease-in-out infinite;
    }

@@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.25;
    }
}

/* ============================================
   Logo Section
   ============================================ */

.logo-section {
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

/* 🎯 LOGO IMAGE - AGREGADO */
.logo-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(124, 179, 66, 0.3));
}

.logo-section h1 {
    font-family: 'Syne', sans-serif;
    font-size: 72px;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin: 0;
    letter-spacing: -2px;
}

.logo-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--light-text);
    line-height: 1;
    margin: 8px 0 0 0;
    letter-spacing: -1px;
}

.tagline {
    font-size: 18px;
    color: var(--gray-text);
    margin-top: 24px;
    line-height: 1.6;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

/* ============================================
   Decorative Elements
   ============================================ */

.decorative-circle {
    position: absolute;
    bottom: 60px;
    right: 60px;
    width: 180px;
    height: 180px;
    border: 3px solid rgba(124, 179, 66, 0.2);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

    .decorative-circle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120px;
        height: 120px;
        border: 2px solid rgba(156, 204, 101, 0.3);
        border-radius: 50%;
    }

@@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Right Panel - Login Form
   ============================================ */

.right-panel {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(26, 58, 58, 0.4);
}

.login-header {
    margin-bottom: 40px;
}

    .login-header h3 {
        font-family: 'Syne', sans-serif;
        font-size: 32px;
        font-weight: 700;
        color: var(--light-text);
        margin-bottom: 8px;
    }

    .login-header p {
        color: var(--gray-text);
        font-size: 16px;
    }

/* ============================================
   Form Elements
   ============================================ */

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    color: var(--light-text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 12px;
    color: var(--light-text);
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

    input[type="email"]::placeholder,
    input[type="password"]::placeholder {
        color: rgba(176, 196, 196, 0.5);
    }

    input[type="email"]:focus,
    input[type="password"]:focus {
        border-color: var(--primary-green);
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(124, 179, 66, 0.15);
    }

/* ============================================
   Submit Button
   ============================================ */

.submit-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-lime) 100%);
    border: none;
    border-radius: 12px;
    color: var(--darker-teal);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

    .submit-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(124, 179, 66, 0.4);
    }

        .submit-button:hover::before {
            left: 100%;
        }

    .submit-button:active {
        transform: translateY(0);
    }

/* ============================================
   Error Messages
   ============================================ */

.error-message {
    background: rgba(239, 83, 80, 0.1);
    border-left: 4px solid var(--error-red);
    color: #ff8a80;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    animation: shake 0.5s ease;
}

@@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.text-danger {
    color: #ff8a80;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.validation-summary-errors {
    background: rgba(239, 83, 80, 0.1);
    border-left: 4px solid var(--error-red);
    color: #ff8a80;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

    .validation-summary-errors ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .validation-summary-errors li {
        margin-bottom: 4px;
    }

/* ============================================
   Responsive Design
   ============================================ */

@@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .left-panel {
        padding: 40px;
        text-align: center;
        align-items: center;
    }
    /* 🎯 LOGO RESPONSIVE - AGREGADO */
    .logo-image {
        max-width: 220px;
    }

    .logo-section h1 {
        font-size: 56px;
    }

    .logo-section h2 {
        font-size: 38px;
    }

    .decorative-circle {
        display: none;
    }

    .tagline {
        text-align: center;
    }

    .right-panel {
        padding: 40px;
    }
}

@@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .left-panel,
    .right-panel {
        padding: 30px 20px;
    }
    /* 🎯 LOGO RESPONSIVE MÓVIL - AGREGADO */
    .logo-image {
        max-width: 180px;
    }

    .logo-section h1 {
        font-size: 42px;
    }

    .logo-section h2 {
        font-size: 28px;
    }

    .login-header h3 {
        font-size: 26px;
    }
}
