/* CSS SIGNIN */

:root {
  /* === Dicertified Core Palette === */
  --dc-navy-dark: #020617;
  --dc-navy: #0b1f44;
  --dc-blue: #2563eb;
  --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: '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 .signup-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  background: linear-gradient(90deg, #0b1f44, #2563eb);
  color: #ffffff;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

header .signup-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Main Container */
.container {
  display: flex;
  flex: 1;
  width: 100%;
}

/* Left Side */
.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: #fff;
}

.form-box {
  width: 100%;
  max-width: 380px;
}

.form-box h2 {
  font-weight: 600;
  color: #222;
  font-size: 1.5rem;
}

/* Google Login */
.social-login {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.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: #d4af37;
  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;
}

/* Input */
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #3C3D8F;
  outline: none;
}

/* Password Group */
.password-group {
  position: relative;
}

.password-group .toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #555;
}

/* Forgot Password */
.options {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  font-size: 13px;
  color: #555;
}

.options a {
  color: #5C5555;
  text-decoration: none;
  font-weight: 500;
}

/* Button */
.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(90deg, #0b1f44, #2563eb);
  color: #ffffff;
  transition: all 0.25s ease;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  font-size: 15px;
}

.login-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Register Link */
.register {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.register a {
  color: #d4af37;
  font-weight: 500;
}

/* Captcha */
.recaptcha-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Right Side */
.right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right img {
  width: 80%;
  max-width: 500px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 25px;
  width: 350px;
  border-radius: 12px;
  text-align: center;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.modal-buttons button {
  flex: 1;
}

.modal-content {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
  font-size: 20px;
  color: #777;
  transition: 0.2s;
}

.modal-close:hover {
  color: #000;
  transform: scale(1.1);
}


.cancel-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #ddd;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

/*------- GOOGLE BUTTON ------------*/
/* GOOGLE SIGN IN */
.google-login {
  margin-top: 20px;
}

.google-btn {
  width: 100%;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background-color: #ffffff;
  color: #3c4043;

  border: 1px solid #dadce0;
  border-radius: 4px;

  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.google-btn img {
  width: 18px;
  height: 18px;
}

.google-btn:hover {
  background-color: #f7f8f8;
  box-shadow: 0 1px 2px rgba(60,64,67,0.15);
}

.google-btn:active {
  background-color: #f1f3f4;
}

.google-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(66,133,244,0.3);
}

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #9aa0a6;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  margin: 0 10px;
}


/* Responsive */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .right {
    display: none;
  }

  .left {
    height: 100vh;
  }
}

.container.single {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.container.single .left {
  width: 100%;
  max-width: 420px;
}

