/* ============================================================
   DECISION PARTNERS — Shared Design System
   Used by all pages (Login, App, Admin, Landing)
   ============================================================ */

:root {
  --dp-blue: #1f497d;
  --dp-dark: #0f243e;
  --dp-accent: #dce048;
  --dp-light-blue: #679bd8;
  --text-main: #ffffff;
  --glass-bg: rgba(15, 36, 62, 0.95);
  --border-color: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Arial", "Helvetica", sans-serif;
}

body {
  background-color: var(--dp-dark);
  color: var(--text-main);
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(
    circle at 50% -20%,
    #2b65aa 0%,
    var(--dp-dark) 80%
  );
}

/* ---- Canvas Background ---- */
canvas#fluidCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(220, 224, 72, 0.05);
}

/* ---- Logo ---- */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo {
  height: 65px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.logo-fallback {
  font-family: "Century Gothic", "Arial", sans-serif;
  font-weight: bold;
  font-size: 2.5rem;
  color: white;
  letter-spacing: -1px;
  text-align: center;
}

.logo-fallback span {
  color: var(--dp-accent);
}

/* ---- Form Elements ---- */
.input-wrapper {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.input-wrapper:focus-within {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--dp-accent);
  box-shadow: 0 0 25px rgba(220, 224, 72, 0.2);
}

label {
  font-size: 0.7rem;
  color: var(--dp-light-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  outline: none;
  font-family: "Arial", sans-serif;
  font-weight: 500;
}

textarea {
  resize: none;
  height: 60px;
  line-height: 1.4;
}

select option {
  background: var(--dp-blue);
  color: white;
  padding: 10px;
}

::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.2) inset;
  -webkit-text-fill-color: white;
  caret-color: white;
  transition: background-color 5000s ease-in-out 0s;
}

/* ---- Buttons ---- */
.action-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--dp-blue) 0%, #2b65aa 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 18px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 10px 30px -5px rgba(31, 73, 125, 0.5);
  position: relative;
  overflow: hidden;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px -5px rgba(220, 224, 72, 0.25);
  border-color: var(--dp-accent);
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.action-btn .btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ---- Version Badge ---- */
.version-badge {
  text-align: center;
  margin-bottom: 0.5rem;
}

.version-badge span {
  background: rgba(220, 224, 72, 0.15);
  color: var(--dp-accent);
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(220, 224, 72, 0.3);
}

/* ---- Error/Success Messages ---- */
.msg-error {
  background: rgba(220, 50, 50, 0.2);
  border: 1px solid rgba(220, 50, 50, 0.4);
  color: #ff8a8a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  display: none;
  margin-top: 10px;
}

.msg-success {
  background: rgba(220, 224, 72, 0.15);
  border: 1px solid rgba(220, 224, 72, 0.3);
  color: var(--dp-accent);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  display: none;
  margin-top: 10px;
}

/* ---- Links ---- */
a {
  color: var(--dp-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Utility ---- */
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}

/* ---- Top Bar ---- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(15, 36, 62, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

.top-bar-logo-text {
  font-family: "Century Gothic", "Arial", sans-serif;
  font-weight: bold;
  font-size: 1rem;
  color: white;
  letter-spacing: -0.5px;
}

.top-bar-logo-text span {
  color: var(--dp-accent);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-user {
  font-size: 0.8rem;
  color: #aabdd1;
}

.top-bar-link {
  font-size: 0.75rem;
  color: var(--dp-accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.top-bar-link:hover {
  background: rgba(220, 224, 72, 0.1);
  text-decoration: none;
}

/* ---- Animations ---- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
