/* Base utilities — light dashboard */
body {
    background-color: #f4f7fb;
    color: #0f172a;
}

.glass-panel {
    background: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(12, 26, 58, 0.02), 0 12px 32px rgba(12, 26, 58, 0.06);
    border-radius: 24px;
}

.glass-panel:hover {
    border-color: transparent;
    transform: translateY(-2px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 8px rgba(12, 26, 58, 0.04), 0 20px 48px rgba(12, 26, 58, 0.08);
}

.bg-striped {
    background: repeating-linear-gradient(
      45deg,
      rgba(45, 212, 191, 0.08),
      rgba(45, 212, 191, 0.08) 4px,
      transparent 4px,
      transparent 8px
    );
}

.text-gradient {
    background: linear-gradient(115deg, #ff6b35 0%, #f97316 38%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    position: relative;
    background: #ff6b35;
    border: 1px solid #ff6b35;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: #e85a24;
    border-color: #e85a24;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.28);
}

.animate-pulse-slow {
    animation: pulseSlow 8s infinite alternate;
}

@keyframes pulseSlow {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.1); opacity: 0.3; }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Auth form — explicit spacing so icons never overlap input text */
.auth-field-wrap {
    position: relative;
}

.auth-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    font-size: 1.125rem;
    line-height: 1;
}

.auth-input,
.auth-input.ui-input,
input.auth-input {
    width: 100%;
    max-width: 100%;
    background: var(--ke-surface, #ffffff);
    border: 1px solid var(--ke-border, #eceff3);
    border-radius: 12px;
    padding: 0.65rem 0.85rem 0.65rem 2.55rem !important;
    color: var(--ke-text, #0c1a3a) !important;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 2.75rem;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: var(--ke-text-muted, #6b7686);
}

.auth-input:focus {
    border-color: var(--ke-orange, #ff6b35) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
}

.auth-input--password,
.auth-input.auth-input--password,
input.auth-input.auth-input--password {
    padding-right: 2.85rem !important;
}

.auth-password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ke-text-muted, #6b7686);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    font-size: 1.0625rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle:hover {
    color: var(--ke-text, #0c1a3a);
}

.auth-login-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--ke-orange-border, #ffd3ba);
    background: var(--ke-orange-soft, #fff1e8);
    color: #9a3412;
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: left;
}

.auth-login-notice i {
    flex-shrink: 0;
    margin-top: 0.05rem;
    font-size: 0.9375rem;
    color: var(--ke-orange, #ff6b35);
}

.auth-login-notice.hidden {
    display: none;
}

/* Auth — mobile: prevent iOS input zoom + touch-friendly fields */
@media (max-width: 639px) {
    .auth-input,
    .auth-input.ui-input,
    input.auth-input {
        font-size: 16px !important;
    }
}

.landing-nav-login {
    color: #334155;
    font-weight: 600;
}

/* GPT Asistan — keep chat input always interactive */
[data-ai-chat-input] {
    pointer-events: auto !important;
    cursor: text !important;
    color: #0f172a !important;
    background: #ffffff !important;
}

[data-ai-chat-input]:disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: text !important;
}
