/* ==========================================================================
   UDIFRIOS PRO — LOGIN DESIGN SYSTEM (HIGH-END SAAS GLASSMORPHISM)
   ========================================================================== */

.login-body {
    background-color: #070d18;
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* --- AMBIENT MESH GLOW BACKGROUND --- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: 15%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(37, 99, 235, 0.05) 70%, transparent 100%);
    animation: floatGlow 10s ease-in-out infinite alternate;
}

.glow-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: 15%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(14, 165, 233, 0.05) 70%, transparent 100%);
    animation: floatGlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(40px) scale(1.08); }
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* --- LAYOUT WRAPPER --- */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.login-card-container {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- BRANDING HEADER --- */
.brand-header {
    text-align: center;
    margin-bottom: 24px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.brand-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.brand-accent {
    color: #38bdf8;
    margin-left: 2px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    max-width: 360px;
    margin: 0 auto;
}

/* --- GLASSMORPHISM CARD --- */
.login-glass-card {
    width: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 
        0 20px 40px -15px rgba(0, 0, 0, 0.6),
        0 0 40px -10px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* --- FORM FIELDS & ICONS --- */
.form-group-modern {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-label-modern {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.modern-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    font-size: 0.92rem;
    font-family: inherit;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #ffffff;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-input::placeholder {
    color: #475569;
}

.modern-input:focus {
    background: rgba(30, 41, 59, 0.95);
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.input-icon-wrapper:focus-within .input-icon {
    color: #60a5fa;
}

/* --- EYE TOGGLE BUTTON --- */
.eye-toggle-button {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.eye-toggle-button:hover {
    color: #93c5fd;
    background: rgba(255, 255, 255, 0.05);
}

/* --- ERROR BOX --- */
.login-error-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* --- SUBMIT BUTTON --- */
.btn-glow-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-glow-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
}

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

.btn-arrow {
    transition: transform 0.2s ease;
}

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

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

/* --- FEATURES ROW --- */
.features-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 500;
}

.feat-icon {
    font-size: 0.85rem;
}

/* --- FOOTER --- */
.modern-footer {
    padding: 16px 20px;
    text-align: center;
    font-size: 0.78rem;
    color: #475569;
    position: relative;
    z-index: 1;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 480px) {
    .login-glass-card {
        padding: 24px 18px;
    }
    .brand-name {
        font-size: 1.4rem;
    }
    .login-title {
        font-size: 1.3rem;
    }
}