/* CSS SIGNUP */

:root {
  /* === Dicertified Core Palette === */
  --dc-navy-dark: #020617;
  --dc-blue: #2563eb;
  --dc-navy: #0b1f44;
  --dc-blue-soft: #38bdf8;

  --dc-bg: #f8fafc;
  --dc-card: #ffffff;
  --dc-text: #0b1f44;
  --dc-muted: #64748b;

  --dc-gradient: linear-gradient(
    135deg,
    #020617 0%,
    #0b1f44 45%,
    #2563eb 100%
  );
}

* {
  box-sizing: border-box;
  font-family: 'poppins', 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: var(--dc-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #333;
}

/* Header */
header {
  width: 100%;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #222;
  text-decoration: none;
}

header .logo img {
  height: 57px;
  width: auto;
}

header .signin-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, #0b1f44, #2563eb);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: 0.3s ease;
}

header .signin-btn:hover {
  background: linear-gradient(90deg, #1e40af, #38bdf8);
  transform: translateY(-2px);
}

/* Main Layout */
.container {
  display: flex;
  flex: 1;
  width: 100%;
}

.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.form-box {
  width: 100%;
  max-width: 380px;
}

.form-box h2 {
  font-weight: 600;
  color: #222;
  font-size: 1.5rem;
  text-align: left;
}

/* Inputs */
.form-box input[type="text"],
.form-box input[type="email"],
.form-box input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-box input:focus {
  border-color: var(--dc-blue);
  outline: none;
}

/* Gold Button */
.signup-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, #0b1f44, #2563eb);
  color: #ffffff;
  transition: all 0.25s ease;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
}

.signup-btn:hover {
  background: linear-gradient(90deg, #1e40af, #38bdf8);
  transform: translateY(-2px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
  color: #777;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.divider:not(:empty)::before {
  margin-right: .75em;
}

.divider:not(:empty)::after {
  margin-left: .75em;
}

/* Social Buttons */
.social-login {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.social-login button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.social-login button:hover {
  border-color: var(--dc-blue);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Already Have Account */
.already {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

.already a {
  color: var(--dc-blue);
  font-weight: 500;
  text-decoration: none;
}

.already a:hover {
  text-decoration: underline;
}

/* Right Illustration */
.right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

.right img {
  width: 80%;
  max-width: 500px;
}

/* Responsive */
@media (max-width: 900px) {
  header {
    padding: 16px 24px;
  }

  .container {
    flex-direction: column;
  }

  .right {
    display: none;
  }

  .left {
    height: 100vh;
  }
}

/* Password Group */
.password-group {
  position: relative;
  width: 100%;
}

.password-group input {
  width: 100%;
  padding-right: 40px;
}

.password-group .toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 16px;
  transition: 0.3s;
}

.password-group .toggle-pass:hover {
  color: var(--dc-blue);
}

/* Terms Box */
.terms-box {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 13px;
  color: #555;
}

.terms-label {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.terms-box a {
  color: var(--dc-blue);
  font-weight: 500;
  text-decoration: none;
}

.terms-box a:hover {
  text-decoration: underline;
}

.input-group {
  width: 100%;
  position: relative;
}

.input-group,
.password-group {
  position: relative;
}

.error-msg {
  position: absolute;
  left: 0;
  bottom: -18px;
  font-size: 13px;
  color: #d9534f;
}

/* ================= Modal ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 700px;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  position: relative;
  font-family: 'poppins', sans-serif, 'Inter';
  font-size: 14px;
  max-height: 80vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: 0.3s;
}

.close-btn:hover {
  color: var(--dc-blue);
}

/* Tabs */
.tab-header {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active {
  border-bottom: 3px solid var(--dc-blue);
  color: var(--dc-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  color: #333;
  margin-bottom: 10px;
}

.tab-content ul {
  margin-left: 20px;
  line-height: 1.6;
}

button.google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button.google:hover {
  background: #f7f8f8;
}


#termsModal .modal-content,
#termsModal .modal-content p,
#termsModal .modal-content li,
#termsModal .modal-content h3,
#termsModal .modal-content h4 {
  color: #073254; /* warna teks gelap */
}

.strength-text {
  font-size: 14px;
  margin-top: 5px;
  height: 20px;
  font-weight: 600;
}

.strength-weak { color: #dc2626; }    /* red */
.strength-medium { color: #d97706; }  /* orange */
.strength-strong { color: #16a34a; }  /* green */

.password-rules {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.password-rules .rule {
  display: flex;
  align-items: center;
  margin: 3px 0;
}

.password-rules .icon {
  width: 20px;
  font-weight: bold;
  color: red;
}

.password-rules .success .icon {
  color: green;
}

.password-rules .success {
  color: #0a8a0a;
}

.password-reqs li {
  list-style: none;
  font-size: 14px;
  margin: 4px 0;
  color: #d33;
}

.password-reqs li.valid {
  color: #28a745;
  font-weight: 600;
}

/* GOLD LOADER (same style as dashboard) */
.loader {
  border: 3px solid #fff;
  border-top: 3px solid var(--dc-blue);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Force inline alignment inside button */
.signup-btn .loader {
  position: relative;
  top: -1px;
}

.container {
  justify-content: center;
}

.left {
  max-width: 520px;
  margin: 0 auto;
}

.social-login .google {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #444;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.social-login .google:hover {
  border-color: var(--dc-blue);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
  color: #777;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.divider:not(:empty)::before {
  margin-right: .75em;
}

.divider:not(:empty)::after {
  margin-left: .75em;
}