/*                                                   
    //================= STYLESHEET ========================//
   //-----------------------------------------------------//
  //       PROJECT: AUTHENTICATION SYSTEM | V.1.00       //
 //-----------------------------------------------------//
//   CORE: ADMIN MASTER INTERFACE | CSS POWERED        //
||====================================================// 
||---------------------------------------------------------------||
|| AUTHOR: Ephrem Development                                    ||
|| LICENSE: Copyright © 2026 | All Rights Reserved               ||
||===============================================================||
*/

/* 
   AUTH SYSTEM: DARK GLASSMORPHISM VARIABLES & CORE SETTINGS
   Optimized for: Login, Register, and MFA screens.
-----------------------------------------------------------------*/

/* custme variables */
:root {

                       
  /* Main Colors - Slightly more vivid for light mode pop */
  --primary:               #2563eb; /* Royal Blue */
  --secondary:             #9333ea; /* Deep Purple */
  
    /* Status Colors */
  --accent:                #059669;
  --danger:                #e11d48;
  --warning:               #d97706;

  /* Background Levels (Airy & Clean -Royal Purple) */
  --bg-dark:               #f8fafc; /* Very light slate background */
  --bg-light:              #ffffff; /* Card background level */
  
   /* --- RGBA Consolidations (Shadow & Depth) --- */
  --rgba-white-03:         rgba(15, 23, 42, 0.03); /* Soft shadows instead of glow */
  --rgba-white-05:         rgba(15, 23, 42, 0.05);
  --rgba-white-15:         rgba(15, 23, 42, 0.15);
  /* --- The Glass Engine (Frosted Light) --- */
  /* Higher opacity than dark mode to maintain contrast on white */
  --glass:                 rgba(255, 255, 255, 0.65); 
  --glass-border:          rgba(255, 255, 255, 0.8);
  --transition:            0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Button & Interaction Shadows --- */
  /* In light mode, we use soft dark shadows instead of light glows */
  --btn-overlay:           rgba(0, 0, 0, 0.05);
  --btn-shadow-color:      rgba(37, 99, 235, 0.2); 

  /* --- Text Colors (Deep Contrast) --- */
  --text-light:            #0f172a; /* Near black for readability */
  --subtitle-color:        #475569; /* Medium slate for labels */
  --strength-text-color:   #64748b; /* Password hints */
  
  /* --- Feedback Colors --- */
  --error-color:           #dc2626; /* Stronger red for light mode */
  --error-bg:              rgba(220, 38, 38, 0.08);

  /* --- Input Field */
  --input-bg:              rgba(255, 255, 255, 0.45);
  --input-border:          #cbd5e1; /* Use this for light borders/lines */

  --soft-shadow:           0 4px 12px rgba(0, 0, 0, 0.05),
                           0 2px 4px rgba(255, 255, 255, 0.08) inset;
                   
}


/* 
   AUTH SYSTEM: LIGHT GLASSMORPHISM (FROSTED ICE) VARIABLES & CORE SETTINGS
   Optimized for: Login, Register, and MFA screens.
-----------------------------------------------------------------*/
[data-theme="dark"] {
    /* Main Colors - Slightly more vivid for light mode pop */
  --primary:               #3b82f6;  /* Royal Blue */
  --secondary:             #a855f7; /* Deep Purple */

    /* Status Colors */
  --accent:                #10b981;
  --danger:                #f43f5e;
  --warning:               #fbbf24;

    /* Background Levels (Airy & Clean - Royal Purple) */
  --bg-dark:               #0f172a;
  --bg-light:              #1e293b;

    /* --- RGBA Consolidations --- */
  --rgba-white-03:         rgba(255, 255, 255, 0.03);
  --rgba-white-05:         rgba(255, 255, 255, 0.05);
  --rgba-white-15:         rgba(255, 255, 255, 0.15);

   /* --- The Glass Engine (Frosted Light) --- */
  --glass:                 rgba(30, 41, 59, 0.7);
  --glass-border:          rgba(255, 255, 255, 0.1);
  --transition:            0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Button & Interaction Shadows --- */
  --btn-overlay:           rgba(255, 255, 255, 0.15);
  --btn-shadow-color:      rgba(168, 85, 247, 0.3);

  /* --- Text Colors --- */
  --text-light:            #f1f5f9;
  --subtitle-color:        #94a3b8;
  --strength-text-color:   #64748b;

  /* --- Feedback Colors --- */
  --error-color:           #f87171;
  --error-bg:              rgba(248, 113, 113, 0.1);

   /* --- Input Field */
  --input-bg:              rgba(15, 23, 42, 0.6);
  --input-border:          #334155;

 --soft-shadow:            0 4px 12px rgb(25 36 55 / 28%),
                           0 2px 4px rgba(255, 255, 255, 0.03) inset,
                           0 -1px 2px rgba(255, 255, 255, 0.02) inset;                       
}

/* GLOBAL LAYOUT & TYPOGRAPHY
-----------------------------------------------------------------*/
/* Layout */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  background: radial-gradient(circle at top right,
      var(--bg-light),
      var(--bg-dark));
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Heading, Links and Text */
h2 {
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--subtitle-color);
  margin-bottom: 35px;
  font-size: 0.9rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.text-sm {
  font-size: 0.8rem;
}

.text-xs {
  font-size: 0.6rem;
}

.text-bold {
  font-weight: 800;
}

/* AUTH CARD / LAYOUT 
-----------------------------------------------------------------*/
.auth-card {
  background: var(--glass);
  backdrop-filter: blur(15px);
  padding: 50px;
  border-radius: 30px;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  border-top: 4px solid var(--secondary);
  width: auto;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  margin-top: 25px;
  margin-bottom: 25px;
}

/*  FORM INPUTS & STRENGTH METER
-----------------------------------------------------------------*/
input {
  width: 100%;
  height: 100%;
  padding: 14px 18px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  /* background: rgba(15, 23, 42, 0.6); */
  background: var(--input-bg);
  /* box-shadow: var(--soft-shadow); */
  color: var(--text-light);
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
  margin: 0;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);

  /* background: var(--bg-light); */
}

input::placeholder {
  color: var(--strength-text-color);
  opacity: 1;
  /* Ensures color displays correctly in Firefox */
}

select,
.authentication-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(30, 41, 59, 0.8);
  color: var(--clr-slate-300);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px 40px 10px 15px;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition:
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}

/* Select Option */
.authentication-selector {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--secondary);
  font-weight: 800;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* PASSWORD STRENGTH
-----------------------------------------------------------------*/
.strength-wrapper {
  height: 6px;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  margin-top: -10px;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}

#strength-bar {
  height: 100%;
  width: 0%;
  transition: 0.4s ease;
}

#strength-text {
  font-size: 0.75rem;
  text-align: left;
  display: block;
  color: var(--strength-text-color);
  margin-bottom: 20px;
}

/* PASSWORD VIEW TOGGLE 
-----------------------------------------------------------------*/
.input-wrapper {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 45px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  opacity: 0.6;
  z-index: 10;
  transition: opacity 0.2s ease;
  user-select: none;
}

.password-toggle:hover {
  opacity: 1;
}

.password-toggle svg {
  display: block;
  pointer-events: none;
  /* Prevents path from intercepting clicks */
}

/* BUTTONS
-----------------------------------------------------------------*/
.btn-cta {
  position: relative;
  overflow: hidden;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  border: none;
  color: #fff;
  cursor: pointer;
}

.btn-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: var(--btn-overlay);
  transform: rotate(30deg);
  transition: 0.6s;
}

.btn-cta:hover::after {
  left: 150%;
}

.btn-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* --- Main Buttons --- */
.btn-authorize {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--btn-shadow-color);
  font-size: 1rem;
}

.btn-authorize:hover:not(:disabled) {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.btn-authorize:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  box-shadow: none;
  padding: 10px 16px;
  color: var(--clr-slate-400);
  background: var(--bg-light);
  border: 1px solid var(--primary);
  width: 100%;
}

/* ERROR & SUCCESS MESSAGES
-----------------------------------------------------------------*/
.error-msg {
  color: var(--error-color);
  background: var(--error-bg);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

/* 2FA AUTHENTICATION QR SCANNER (USER LOGIN - FIRST TIME)
-----------------------------------------------------------------*/
.qr-setup__code {
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  color: var(--warning);
  letter-spacing: 3px;
  background: var(--rgba-white-15);
  padding: 4px 8px;
  border-radius: 4px;
}

.qr-setup__container {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  border: 1px dashed var(--primary);
  text-align: center;
}

.qr_text {
  font-size: 0.85rem;
  color: #60a5fa;
  margin-bottom: 15px;
}

/* THEME SWITCHER - DARK/LIGHT MODE (NEUMORPHIC GLASS)
-----------------------------------------------------------------*/
/* THEME TOGGLE CONTAINER */
.theme-controller {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  /* Dedicated to Auth pages */
  position: absolute;
  right: 0;
  top: 0;
}

.glass-toggle {
  cursor: pointer;
  position: relative;
  display: inline-block;
  width: 72px;
  height: 36px;
}

.theme-input {
  display: none;
  /* Hide the ugly checkbox */
}

/* THE TRACK (THE GLASS) */
.toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 4px;
  box-shadow: var(--soft-shadow);
}

/* THE SLIDING PILL */
.toggle-pill {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--rgba-primary-30);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2;
}

/* ICON PLACEMENT */
.icon-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 8px;
  font-size: 14px;
  z-index: 1;
  pointer-events: none;
}

/* INTERACTION LOGIC */
.theme-input:checked+.toggle-track .toggle-pill {
  transform: translateX(36px);
  background: var(--secondary);
  /* Switches to purple in dark mode */
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.theme-input:checked+.toggle-track {
  background: var(--input-bg);
  /* Slightly darker in dark mode */
  border: 1px solid var(--input-border);
}

/* HOVER EFFECT */
.glass-toggle:hover .toggle-track {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* FOOTER
-----------------------------------------------------------------*/
.footer-link {
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--subtitle-color);
}

.footer-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.footer-link a:hover {
  color: var(--secondary);
}

.return-link {
  color: var(--subtitle-color);
  text-decoration: none;
}

/*  MISC / DIVIDERS / SPACING
-----------------------------------------------------------------*/
hr {
  height: 1px;
  border: none;
  background: linear-gradient(to right,
      transparent,
      var(--primary),
      var(--secondary),
      transparent);
  margin: 40px 0;
  opacity: 0.6;
}

/*  --- Utility Spacing Classes --- */
.m-top {
  margin-top: 15px;
}

.m-bottom {
  margin-bottom: 15px;
}

.my-1 {
  margin-bottom: 15px;
  margin-top: 15px;
}

.p-top {
  padding-top: 15px;
}

.p-bottom {
  padding-bottom: 15px;
}

.py-1 {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* code {
  background: var(--rgba-black-30);
  font-family: "monospace";
  color: var(--clr-slate-300); 
}
.badge,
code {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
} */