/* ========================================
   MODERN SPLIT-SCREEN LOGIN
   ======================================== */

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

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #f8fafc;
}

/* Split Container */
.login-split-container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* ========================================
   LEFT PANEL - DARK WITH BRANDING
   ======================================== */

.login-left-panel {
    flex: 1;
    background: 
        radial-gradient(ellipse 80% 60% at 30% 20%, rgba(60, 60, 60, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 70% 80%, rgba(45, 45, 45, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(35, 35, 35, 0.3) 0%, transparent 60%),
        linear-gradient(180deg, #0a0a0a 0%, #111 30%, #0d0d0d 70%, #080808 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animación solo en panel negro: aurora suave */
.login-left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse 100% 80% at 50% 50%,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.06) 40%,
        transparent 70%
    );
    animation: login-aurora 14s ease-in-out infinite;
}

.login-left-panel::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 55%
    );
    mix-blend-mode: screen;
    animation: login-aurora-drift 16s ease-in-out infinite;
}

@keyframes login-aurora {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1.15;
        transform: scale(1.22);
    }
}

@keyframes login-aurora-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(5%, 8%) scale(1.05);
    }
    50% {
        transform: translate(-6%, -4%) scale(0.95);
    }
    75% {
        transform: translate(4%, -6%) scale(1.02);
    }
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

.brand-logo {
    margin-bottom: 2rem;
}

.brand-logo img {
    max-width: 280px;
    height: auto;
    display: block;
}

/* ========================================
   RIGHT PANEL - WHITE WITH FORM
   ======================================== */

.login-right-panel {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.login-right-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 100% 0%, rgba(0, 252, 47, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.login-form-container {
    width: 100%;
    max-width: 480px;
    animation: fadeInRight 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.form-header {
    margin-bottom: 3.5rem;
    text-align: left;
}

.form-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.form-header p {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding-left: 0.5rem;
}

.form-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: linear-gradient(135deg, #00fc2f 0%, #00d43a 100%);
    border-radius: 2px;
}

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

.input-icon {
    position: absolute;
    left: 1.25rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 1;
}

.form-group:focus-within .input-icon {
    color: #00fc2f;
}

.form-input {
    width: 100%;
    padding: 1.125rem 1.5rem 1.125rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.form-input:focus {
    outline: none;
    border-color: #00fc2f;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 252, 47, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-input:focus::placeholder {
    color: #cbd5e1;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 252, 47, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit:disabled::before {
    display: none;
}

.btn-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

.btn-submit:disabled .btn-icon {
    opacity: 0.5;
}

.btn-submit.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.error-message {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #dc2626;
    border-radius: 12px;
    color: #991b1b;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    animation: shake 0.5s, fadeIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.error-message.show {
    display: block;
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    padding: 2.5rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.modal-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.modal-footer {
    margin-top: 2rem;
}

.password-requirements {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}

.password-requirements strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.5rem;
}

.password-requirements li {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    .login-split-container {
        flex-direction: column;
    }

    .login-left-panel {
        flex: 0 0 35%;
        min-height: 35vh;
    }

    .brand-logo img {
        max-width: 200px;
    }

    .form-header {
        margin-bottom: 2.5rem;
    }

    .form-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .login-left-panel {
        flex: 0 0 30%;
        min-height: 30vh;
    }

    .login-right-panel {
        padding: 2rem 1.5rem;
    }

    .login-form-container {
        max-width: 100%;
    }

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

    .form-header h2 {
        font-size: 1.875rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }

    .brand-logo img {
        max-width: 160px;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-input {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 1rem 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .login-right-panel {
        padding: 1.5rem 1rem;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
}