/* ==========================================================================
   AVYAAN STUDIO CORE OS - ACCESS CONTROL INTERFACE
   ========================================================================== */

:root {
  --bg-matte: #0c0b0a;        /* Extreme Luxury Dark Obsidian */
  --panel-glass: rgba(22, 21, 19, 0.7); /* Sleek Translucent Fine Glass */
  --panel-input: rgba(34, 32, 30, 0.5); /* Deep Input Beds */
  --ink-pure: #f3ede2;        /* High-end Linen Cream */
  --ink-muted: #8c877e;       /* Velvet Architectural Dust */
  --gold: #c5a880;            /* Clean Core Gold Accent */
  --line-alpha: rgba(197, 168, 128, 0.08);
}

* {
  box-sizing: border-box;
}

.luxury-portal-theme {
  background-color: var(--bg-matte);
  color: var(--ink-pure);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- MONOCHROME NOISE & VISUAL DEPTH --- */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.portal-gradient {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}

.portal-blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
}

.orb-gold {
  background: var(--gold);
  width: 45vw;
  height: 45vw;
  top: -15%;
  left: -10%;
}

.orb-charcoal {
  background: #4a3d2c;
  width: 50vw;
  height: 50vw;
  bottom: -20%;
  right: -10%;
}

/* --- THE GLASS MONOLITH CARD --- */
.login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.login-card-monolith {
  background: var(--panel-glass);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--line-alpha);
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

/* --- BRAND LOGO AREA --- */
.portal-logo-area {
  text-align: center;
  margin-bottom: 40px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 18px;
}

.portal-logo-area h1 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin: 0;
  color: var(--ink-pure);
}

.portal-logo-area p {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin: 8px 0 0 0;
  text-transform: uppercase;
}

/* --- THE CONTROLS SYSTEM --- */
.portal-form-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group-node {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group-node label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

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

.input-field-wrapper input {
  width: 100%;
  background: var(--panel-input);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 16px 14px 44px;
  color: var(--ink-pure);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 6px;
  transition: border-color 0.3s, background-color 0.3s;
}

.input-field-wrapper input:focus {
  outline: none;
  border-color: rgba(197, 168, 128, 0.35);
  background-color: rgba(34, 32, 30, 0.8);
}

.input-field-wrapper input::placeholder {
  color: rgba(140, 135, 126, 0.4);
}

/* Icons inside input boxes */
.field-icon {
  position: absolute;
  left: 16px;
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

/* Password Box custom triggers */
.visibility-trigger {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.visibility-trigger:hover {
  color: var(--gold);
}

.visibility-trigger svg {
  width: 16px;
  height: 16px;
}

/* --- THE LOGIN MAIN BUTTON --- */
.login-btn-premium {
  background: var(--gold);
  color: var(--bg-matte);
  border: none;
  padding: 15px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.login-btn-premium:hover {
  opacity: 0.95;
}

/* --- ERROR/SUCCESS FEEDBACK AREA --- */
.portal-feedback-anchor {
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  min-height: 18px;
  transition: all 0.3s ease;
}

/* Common state dynamic outputs generated inside #loginMessage */
.portal-feedback-anchor .error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.06);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 107, 0.15);
}

.portal-feedback-anchor .success {
  color: #a3e635;
  background: rgba(163, 230, 53, 0.06);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid rgba(163, 230, 53, 0.15);
}