/* SkillJo - Standalone Auth Pages (White Theme & Colorful Role Cards) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --auth-bg: #FFFFFF;
  --auth-surface: #FFFFFF;
  --auth-border: #E2E8F0;
  --auth-border-subtle: #F1F5F9;
  --auth-text-main: #0F172A;
  --auth-text-muted: #64748B;
  --auth-text-light: #94A3B8;
  --auth-primary: #4F46E5;
  --auth-primary-hover: #4338CA;
  --auth-primary-soft: #EEF2FF;
  --auth-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --auth-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --auth-shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --auth-radius-sm: 8px;
  --auth-radius-md: 12px;
  --auth-radius-lg: 16px;
  --auth-radius-xl: 20px;
}

html, body {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.auth-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FFFFFF;
  background: #FFFFFF;
  color: var(--auth-text-main);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Auth Top Navbar */
/* Auth Top Navbar (Black / Sleek Dark Theme) */
.auth-header {
  height: 72px;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.auth-header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

/* Central Header Menu Navigation */
.auth-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (max-width: 860px) {
  .auth-menu {
    display: none;
  }
}

.auth-menu-link {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.auth-menu-link:hover {
  color: #FFFFFF;
  opacity: 0.85;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.auth-menu-link.active {
  color: #FFFFFF;
  font-weight: 800;
}

.auth-menu-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #6366F1, #A855F7);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
  border-radius: 2px;
}

/* Header Action Buttons */
.auth-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-btn-ghost {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--auth-radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.auth-btn-ghost:hover {
  border-color: #818CF8;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
}

.auth-btn-primary {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  padding: 8.5px 18px;
  border-radius: var(--auth-radius-md);
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.auth-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.55);
}

/* Mobile Toggle Button */
.auth-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--auth-radius-sm);
  padding: 7px 9px;
  cursor: pointer;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.auth-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 860px) {
  .auth-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Drawer Overlay & Panel */
.auth-mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #000000;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  padding: 18px 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 49;
}

.auth-mobile-drawer.open {
  display: flex;
}

.auth-mobile-link {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--auth-radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.auth-mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #818CF8;
}

/* Main Container */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

/* Login Card Container (Centered, Focused, No Role Cards) */
.auth-login-container {
  width: 100%;
  max-width: 480px;
}

.auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-xl);
  box-shadow: var(--auth-shadow-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4F46E5, #06B6D4, #10B981);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--auth-text-main);
  margin-bottom: 8px;
}

.auth-card-subtitle {
  font-size: 14px;
  color: var(--auth-text-muted);
  line-height: 1.5;
}

/* Form Elements */
.auth-form-group {
  margin-bottom: 20px;
}

.auth-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-text-main);
  margin-bottom: 8px;
}

.auth-label-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 7px;
  border-radius: 6px;
}

.auth-input-phone-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius-md);
  transition: all 0.2s ease;
  overflow: hidden;
}

.auth-input-phone-wrap:focus-within {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.auth-phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #FFFFFF;
  border-right: 1.5px solid var(--auth-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--auth-text-muted);
  user-select: none;
}

.auth-phone-prefix img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--auth-text-main);
  background: #FFFFFF;
  transition: all 0.2s ease;
  outline: none;
}

.auth-input-phone-wrap .auth-input {
  border: none;
  border-radius: 0;
}

.auth-input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.auth-input.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 4px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

/* Primary Button */
.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--auth-radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.42);
}

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

/* Alert Notification Banner */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--auth-radius-md);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.auth-alert.error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.auth-alert.success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

.auth-alert.info {
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  color: #1E40AF;
}

/* Testing Section (for quick test credentials) */
.auth-test-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--auth-border);
}

.auth-test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.auth-test-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--auth-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-test-otp-badge {
  font-size: 11.5px;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.auth-test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.auth-test-chip {
  background: #FFFFFF;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
}

.auth-test-chip:hover {
  border-color: var(--auth-primary);
  background: var(--auth-primary-soft);
  transform: translateY(-1px);
}

.auth-test-chip-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--auth-text-main);
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-test-chip-phone {
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--auth-text-muted);
}

/* ==========================================================================
   SIGNUP PAGE: WHITE THEME WITH COLORFUL ROLE CARDS
   ========================================================================== */
.auth-signup-container {
  width: 100%;
  max-width: 980px;
}

.auth-signup-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-signup-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--auth-text-main);
  margin-bottom: 8px;
}

.auth-signup-desc {
  font-size: 15px;
  color: var(--auth-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* COLORFUL ROLE CARDS GRID */
.role-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

/* Individual Role Card Base */
.role-card {
  position: relative;
  background: #FFFFFF;
  border: 2px solid var(--auth-border);
  border-radius: var(--auth-radius-lg);
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  user-select: none;
  overflow: hidden;
}

.role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--auth-shadow-md);
}

.role-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.role-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.role-card-icon-box {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--auth-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.role-card-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--auth-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
}

.role-card-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--auth-text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.role-card-desc {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  line-height: 1.45;
  flex: 1;
}

/* =======================================================
   VIBRANT COLOR PALETTES FOR EACH OF THE 8 ROLES
   ======================================================= */

/* 1. Super Admin: Royal Indigo & Violet */
.role-card.role-superadmin {
  --rc-accent: #4F46E5;
  --rc-bg: #EEF2FF;
  --rc-border-active: #6366F1;
  --rc-tag-bg: #E0E7FF;
  --rc-tag-color: #3730A3;
}
.role-card.role-superadmin .role-card-icon-box {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  color: #4F46E5;
  border: 1px solid #C7D2FE;
}

/* 2. Student: Emerald Green & Mint */
.role-card.role-student {
  --rc-accent: #059669;
  --rc-bg: #ECFDF5;
  --rc-border-active: #10B981;
  --rc-tag-bg: #D1FAE5;
  --rc-tag-color: #065F46;
}
.role-card.role-student .role-card-icon-box {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* 3. Tech Founder: Amber & Flame Orange */
.role-card.role-tech-founder {
  --rc-accent: #D97706;
  --rc-bg: #FFFBEB;
  --rc-border-active: #F59E0B;
  --rc-tag-bg: #FEF3C7;
  --rc-tag-color: #92400E;
}
.role-card.role-tech-founder .role-card-icon-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  color: #D97706;
  border: 1px solid #FDE68A;
}

/* 4. College Admin: Crimson Rose & Magenta */
.role-card.role-college-admin {
  --rc-accent: #E11D48;
  --rc-bg: #FFF1F2;
  --rc-border-active: #F43F5E;
  --rc-tag-bg: #FFE4E6;
  --rc-tag-color: #9F1239;
}
.role-card.role-college-admin .role-card-icon-box {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  color: #E11D48;
  border: 1px solid #FECDD3;
}

/* 5. Recruiter: Electric Cyan & Sky Blue */
.role-card.role-recruiter {
  --rc-accent: #0284C7;
  --rc-bg: #F0F9FF;
  --rc-border-active: #0EA5E9;
  --rc-tag-bg: #E0F2FE;
  --rc-tag-color: #075985;
}
.role-card.role-recruiter .role-card-icon-box {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

/* 6. VC / Investor: Vibrant Purple & Fuchsia */
.role-card.role-investor {
  --rc-accent: #7C3AED;
  --rc-bg: #FAF5FF;
  --rc-border-active: #A855F7;
  --rc-tag-bg: #F3E8FF;
  --rc-tag-color: #6B21A8;
}
.role-card.role-investor .role-card-icon-box {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  color: #7C3AED;
  border: 1px solid #E9D5FF;
}

/* 7. Collab Partner: Teal & Jade */
.role-card.role-collab-partner {
  --rc-accent: #0D9488;
  --rc-bg: #F0FDFA;
  --rc-border-active: #14B8A6;
  --rc-tag-bg: #CCFBF1;
  --rc-tag-color: #115E59;
}
.role-card.role-collab-partner .role-card-icon-box {
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
  color: #0D9488;
  border: 1px solid #99F6E4;
}

/* 8. Advertiser: Golden Sun & Coral */
.role-card.role-advertiser {
  --rc-accent: #EA580C;
  --rc-bg: #FFF7ED;
  --rc-border-active: #FB923C;
  --rc-tag-bg: #FFEDD5;
  --rc-tag-color: #9A3412;
}
.role-card.role-advertiser .role-card-icon-box {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  color: #EA580C;
  border: 1px solid #FED7AA;
}

/* Shared dynamic tags styling */
.role-card .role-card-tag {
  background: var(--rc-tag-bg);
  color: var(--rc-tag-color);
}

/* ACTIVE STATE FOR ROLE CARDS */
.role-card.active {
  border-color: var(--rc-border-active);
  background: #FFFFFF;
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.06), 0 0 0 3px var(--rc-border-active);
}

.role-card.active .role-card-check {
  background: var(--rc-accent);
  border-color: var(--rc-accent);
  color: #FFFFFF;
}

/* Signup Details Card Form */
.auth-signup-form-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-xl);
  box-shadow: var(--auth-shadow-lg);
  padding: 36px 36px;
}

.auth-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .auth-header-inner {
    padding: 0 14px;
    gap: 8px;
  }
  .auth-brand {
    font-size: 18px;
    gap: 8px;
  }
  .auth-main {
    padding: 20px 12px 36px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .auth-signup-container, .auth-login-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .auth-signup-header {
    margin-bottom: 20px;
  }
  .auth-signup-title {
    font-size: 23px;
    letter-spacing: -0.02em;
  }
  .auth-signup-desc {
    font-size: 13px;
  }
  .role-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .role-card {
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .auth-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .auth-card, .auth-signup-form-card {
    padding: 20px 14px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .auth-card-title {
    font-size: 22px;
  }
  .auth-input-phone-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .auth-phone-prefix {
    padding: 10px 10px;
    font-size: 13px;
  }
  .auth-input {
    font-size: 14px;
    padding: 10px 12px;
  }
  .auth-test-grid {
    grid-template-columns: 1fr;
  }
  .auth-mobile-drawer {
    padding: 14px 16px;
  }
  .auth-submit-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Footer note */
.auth-footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--auth-text-muted);
  margin-top: 24px;
}

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

.auth-footer a:hover {
  text-decoration: underline;
}
