﻿
:root {
  --primary-teal: #005a6a;
  --bg-gradient: linear-gradient(135deg, #f0f4f5 0%, #c5dbde 40%, #005a6a 100%);
}

body.auth-page {
  background: var(--bg-gradient);
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--jiilna-font-family);
}

.auth-container {
  background: #f1f1f1;
  padding: 50px;
  border-radius: 50px;
  width: 100%;
  max-width: 550px;
  text-align: center;
}

h2 {
  margin-bottom: 15px;
  font-size: 28px;
}

p {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
  padding: 0 10px;
}

input {
  width: 100%;
  padding: 18px 25px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
  box-sizing: border-box;
}

/* زر الإرسال يوجه لصفحة التحقق */
.btn-send {
  display: block;
  width: 100%;
  padding: 18px;
  background-color: var(--primary-teal);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.blue-link {
  color: var(--primary-teal);
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-top: 20px;
  font-size: 14px;
}

body.auth-page {
  margin: 0;
  padding: 0;
  font-family: var(--jiilna-font-family);
  background: radial-gradient(circle at top left, #e0eef0 0%, #005a6a 100%); /* الخلفية المتدرجة كما في الصور */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background: #f1f1f1;
  padding: 60px 50px;
  border-radius: 60px; /* الحواف الدائرية الكبيرة */
  width: 100%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.logo a {
  font-size: 35px;
  font-weight: 800;
  color: var(--jiilna-logo-color, #000000);
  text-decoration: none;
  display: block;
  text-align: left;
  margin-bottom: 40px;
  letter-spacing: 0.08em;
}

input {
  width: 100%;
  padding: 18px 25px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 20px; /* حقول الإدخال المفرغة */
  background: transparent;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
}

.forgot-pass {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 30px;
}

  .forgot-pass a {
      color: #888;
      text-decoration: none;
      font-size: 14px;
  }

.btn {
  width: 100%;
  padding: 18px;
  background: #005a6a;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.footer-text {
  margin-top: 25px;
  color: #666;
  font-size: 14px;
}

  .footer-text a {
      color: #005a6a;
      font-weight: 700;
      text-decoration: none;
  }

   
:root {
  --primary-teal: #005a6a;
  --bg-gradient: linear-gradient(135deg, #f0f4f5 0%, #c5dbde 40%, #005a6a 100%);
}

body.auth-page {
  background: var(--bg-gradient);
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--jiilna-font-family);
}

.auth-container {
  background: #f1f1f1;
  padding: 50px;
  border-radius: 50px;
  width: 100%;
  max-width: 550px;
  text-align: center;
}

h2 {
  margin-bottom: 30px;
  font-size: 28px;
}

input {
  width: 100%;
  padding: 18px 25px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
  box-sizing: border-box;
}

.btn-change {
  display: block;
  width: 100%;
  padding: 18px;
  background-color: var(--primary-teal);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

:root {
  --primary-teal: #2a5d67;
  --bg-color: #f4f7f8;
  --white: #ffffff;
  --text-gray: #8e8e8e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--jiilna-font-family);
}

body.auth-page {
  background: linear-gradient(180deg, #ffffff 0%, #e9eff0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quiz-wrapper {
  width: 100%;
  max-width: 850px;
  text-align: center;
}

.header-section h1 {
  color: var(--primary-teal);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}

.header-section p {
  color: var(--text-gray);
  font-size: 15px;
  margin-bottom: 40px;
}

.quiz-card {
  background: #f8fafb;
  border-radius: 35px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.03);
  position: relative;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Progress Bar (نفس الصورة) */
.progress-box {
  position: absolute;
  top: 25px;
  left: 50px;
  right: 50px;
}

.progress-text {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-align: left;
  margin-bottom: 8px;
}

.progress-bg {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  width: 10%;
  height: 100%;
  background: var(--primary-teal);
  transition: 0.5s ease;
}

/* Welcome Box (صورة 1 من الثلاث) */
.welcome-content {
  background: white;
  padding: 40px;
  border-radius: 25px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

  .welcome-content h2 {
      color: var(--primary-teal);
      font-size: 22px;
      margin-bottom: 20px;
  }

  .welcome-content p {
      font-size: 14px;
      color: #666;
      line-height: 1.7;
      margin-bottom: 15px;
  }

/* Question Box (صورة 2 من الثلاث) */
.interactive-tag {
  background: var(--primary-teal);
  color: white;
  width: fit-content;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.q-info {
  text-align: left;
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 10px;
}

.q-text {
  text-align: left;
  color: var(--primary-teal);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 30px;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-item {
  background: white;
  border: 1px solid #eee;
  padding: 16px 20px;
  border-radius: 15px;
  text-align: left;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: 0.3s;
}

  .option-item:hover {
      border-color: var(--primary-teal);
      background: #f0f7f8;
  }

  .option-item.active {
      border: 2px solid var(--primary-teal);
      background: #f0f7f8;
      font-weight: 600;
  }

/* Result Screen (صورة 3 من الثلاث) */
.result-screen i {
  font-size: 70px;
  color: #4caf50;
  margin-bottom: 25px;
}

.result-screen h2 {
  color: var(--primary-teal);
  font-size: 24px;
  margin-bottom: 35px;
}

/* Buttons */
.btn-main {
  background: var(--primary-teal);
  color: white;
  border: none;
  padding: 14px 45px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 30px;
  display: inline-block;
  text-decoration: none;
}

  .btn-main:hover {
      opacity: 0.9;
      transform: translateY(-2px);
  }

.nav-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.btn-back {
  background: #e0ecee;
  color: var(--primary-teal);
  padding: 14px 30px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.hidden {
  display: none;
}


body.auth-page {
margin: 0;
padding: 0;
font-family: var(--jiilna-font-family);
background: radial-gradient(circle at top left, #e0eef0 0%, #005a6a 100%);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

.container {
background: #f1f1f1;
padding: 40px 50px;
border-radius: 60px;
width: 100%;
max-width: 550px;
text-align: center;
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.logo a {
font-size: 35px;
font-weight: 800;
color: var(--jiilna-logo-color, #000000);
text-decoration: none;
display: block;
text-align: left;
letter-spacing: 0.08em;
}

.role-text {
font-size: 12px;
color: #999;
margin: 15px 0 5px;
}

/* تصميم التبويبات */
.tabs {
display: flex;
justify-content: center;
gap: 30px;
margin-bottom: 25px;
border-bottom: 1px solid #ddd;
}

.tab {
padding-bottom: 8px;
cursor: pointer;
color: #999;
font-weight: 500;
transition: 0.3s;
}

.tab.active {
color: #005a6a;
border-bottom: 3px solid #005a6a;
font-weight: 700;
}

.name-row {
display: flex;
gap: 15px;
}

input, select {
width: 100%;
padding: 15px 20px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 20px;
background: white;
box-sizing: border-box;
outline: none;
font-size: 14px;
}

.btn {
width: 100%;
padding: 18px;
background: #005a6a;
color: white;
border: none;
border-radius: 30px;
font-size: 18px;
font-weight: 600;
cursor: pointer;
margin-top: 10px;
transition: 0.3s;
}

.btn:hover {
background: #004450;
}

.footer-text {
margin-top: 15px;
color: #666;
font-size: 14px;
}

.footer-text a {
color: #005a6a;
font-weight: 700;
text-decoration: none;
}

/* إخفاء فورم المزود في البداية */
#provider-fields {
display: none;
}


body.auth-page {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: var(--jiilna-font-family);
background: radial-gradient(circle at top left, #e0eef0 0%, #005a6a 100%); /* الخلفية المتدرجة كما في الصور */
}

.card {
background: #f1f1f1;
padding: 50px;
border-radius: 60px; /* حواف دائرية كبيرة */
width: 100%;
max-width: 550px;
text-align: center;
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

h2 {
font-size: 32px;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 10px;
}

p {
color: #666;
font-size: 14px;
margin-bottom: 30px;
}

.code-inputs {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 20px;
}

.code-inputs input {
width: 60px;
height: 70px;
border: 1px solid #ccc;
border-radius: 15px;
text-align: center;
font-size: 24px;
font-weight: 600;
background: white;
outline: none;
}

.timer {
color: #ff7675;
font-weight: 600;
margin-bottom: 30px;
display: block;
}

.btn {
width: 100%;
padding: 18px;
background: #005a6a;
color: white;
border: none;
border-radius: 35px;
font-size: 18px;
font-weight: 600;
cursor: pointer;
}

.resend {
margin-top: 25px;
color: #666;
font-size: 14px;
}

.resend a {
color: #005a6a;
font-weight: 700;
text-decoration: none;
}


:root {
--primary-teal: #005a6a;
--bg-gradient: linear-gradient(135deg, #f0f4f5 0%, #c5dbde 40%, #005a6a 100%);
}

body.auth-page {
background: var(--bg-gradient);
height: 100vh;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
font-family: var(--jiilna-font-family);
}

.auth-container {
background: #f1f1f1;
padding: 50px;
border-radius: 50px;
width: 100%;
max-width: 550px;
text-align: center;
}

h2 {
margin-bottom: 10px;
font-size: 28px;
}

p {
font-size: 14px;
color: #666;
margin-bottom: 25px;
}

.code-grid {
display: flex;
gap: 10px;
justify-content: center;
margin: 30px 0;
}

.code-grid input {
width: 60px;
height: 75px;
text-align: center;
font-size: 28px;
border: 1px solid #ddd;
border-radius: 15px;
outline: none;
}

.timer {
color: #555;
font-weight: 600;
margin-bottom: 15px;
}

.error-msg {
color: #d93025;
font-size: 13px;
margin-bottom: 20px;
}

.btn-verify {
display: block;
width: 100%;
padding: 18px;
background-color: var(--primary-teal);
color: white;
border: none;
border-radius: 30px;
font-size: 18px;
font-weight: 600;
cursor: pointer;
text-decoration: none;
}

.resend {
color: var(--primary-teal);
font-weight: 600;
text-decoration: none;
cursor: pointer;
}
@media (max-width: 480px) {
body.auth-page .container,
body.auth-page .auth-container,
body.auth-page .card {
width: 92% !important;
max-width: none !important;
padding: 35px 25px !important;
transform: scale(1) !important;
margin: auto !important;
}

/* تكبير الحقول عشان تصير أسهل في اللمس */
input, .btn {
font-size: 16px !important; /* يمنع الجوال من عمل Zoom تلقائي */
padding: 16px !important;
}
}

.legal-consent-block {
  margin: 8px 0 16px;
  text-align: start;
}

.legal-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  cursor: pointer;
}

.legal-consent-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #005a6a;
}

.legal-consent-text a {
  color: #005a6a;
  font-weight: 600;
  text-decoration: underline;
}

.legal-consent-text a:hover,
.legal-consent-text a:focus {
  color: #003d48;
}

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