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

body {
  background-color: #ffffff;
  color: #111827;
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  overflow-y: auto;
}

/* Main Container - Full Screen */
.main-container {
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* Form Card - Full Height */
.form-card {
  display: flex;
  width: 100%;
  max-width: 1400px;
  min-height: calc(100vh - 40px);
  background-color: #f8fafc;
  border: 2px solid #0f766e;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(15, 118, 110, 0.25);
}

/* Left Section */
.left-section {
  width: 42%;
  background: linear-gradient(135deg, #5eead4, #0f766e);
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.left-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #ffffff 0%, transparent 70%);
  opacity: 0.25;
}

.left-content {
  text-align: center;
  z-index: 2;
}

.main-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.cyan { 
  color: #ffffff; 
}

.subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  margin-top: 15px;
  max-width: 320px;
  font-weight: 500;
}

.icon-container {
  display: flex;
  justify-content: center;
}

.login-logo-outline {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 2049 / 432;
  margin: 22px auto 0;
}

.login-logo-outline::before,
.login-logo-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("logo_.png") center / contain no-repeat;
  filter:
    drop-shadow(0.42px 0 0 #ffffff)
    drop-shadow(-0.42px 0 0 #ffffff)
    drop-shadow(0 0.42px 0 #ffffff)
    drop-shadow(0 -0.42px 0 #ffffff);
  pointer-events: none;
}

.login-logo-outline::before {
  clip-path: inset(0 54.5% 0 0);
}

.login-logo-outline::after {
  clip-path: inset(0 0 0 47.5%);
}

.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Right Section */
.right-section {
  flex: 1;
  padding: 50px 60px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #0f766e #e2e8f0;
  background: #ffffff;
}

/* Scrollbar Styling */
.right-section::-webkit-scrollbar {
  width: 6px;
}
.right-section::-webkit-scrollbar-thumb {
  background: #0f766e;
  border-radius: 10px;
}

/* Form Content */
.form-box {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 35px;
}

.form-header h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.form-header p {
  color: #475569;
  font-size: 17px;
}

/* Input Groups */
.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  color: #0f766e;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.input-group input,
.input-group select {
  width: 100%;
  background-color: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 13px 18px;
  color: #111827;
  font-size: 15.5px;
  transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #0f766e;
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  background-color: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #64748b;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.submit-btn {
  width: 100%;
  background-color: #0f766e;
  color: #ffffff;
  border: none;
  padding: 15px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 18px;
  margin-top: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.submit-btn:hover {
  background-color: #0d9488;
  transform: translateY(-2px);
}

.switch-text {
  text-align: center;
  margin-top: 35px;
  color: #475569;
  font-size: 16px;
}

.link {
  color: #0f766e;
  font-weight: 600;
  cursor: pointer;
}

.link:hover {
  color: #0d9488;
  text-decoration: underline;
}

.auth-link-row {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.text-link-btn {
  border: none;
  background: transparent;
  color: #0f766e;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.text-link-btn:hover {
  color: #0d9488;
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* Login Form Specific */
.login-only {
  max-width: 1100px;
  min-height: calc(100vh - 40px);
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup.hidden {
  display: none !important;
}

.popup-content {
  background: #ffffff;
  border: 2px solid #0f766e;
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  max-width: 380px;
  box-shadow: 0 0 40px rgba(15, 118, 110, 0.3);
}

.popup-content i {
  font-size: 60px;
  margin-bottom: 15px;
}

.popup-content h3 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #111827;
}

.popup-content p {
  color: #475569;
  font-size: 17px;
  margin-bottom: 25px;
}

.popup-btn {
  background: #0f766e;
  color: #ffffff;
  border: none;
  padding: 12px 40px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.popup-btn:hover {
  background: #0d9488;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
}

.auth-modal-card {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
  font-size: 18px;
}

.auth-modal-header {
  margin-bottom: 22px;
  padding-right: 32px;
}

.auth-modal-header h3 {
  color: #111827;
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-modal-header p {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.auth-modal-form .submit-btn {
  margin-top: 12px;
}

.auth-modal-note {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 6px;
}

.reset-page-card {
  max-width: 1160px;
}

.reset-status-banner {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.reset-status-banner.info {
  background: rgba(224, 242, 254, 0.72);
  border-color: rgba(14, 165, 233, 0.22);
  color: #0c4a6e;
}

.reset-status-banner.success {
  background: rgba(220, 252, 231, 0.82);
  border-color: rgba(34, 197, 94, 0.22);
  color: #166534;
}

.reset-status-banner.error {
  background: rgba(254, 226, 226, 0.85);
  border-color: rgba(239, 68, 68, 0.18);
  color: #991b1b;
}

.reset-identity-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  margin-bottom: 18px;
  padding: 18px;
}

.reset-identity-row {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 18px;
  justify-content: space-between;
  padding: 10px 0;
}

.reset-identity-row + .reset-identity-row {
  border-top: 1px solid rgba(203, 213, 225, 0.72);
}

.reset-identity-row span {
  color: #475569;
  font-weight: 600;
}

.reset-identity-row strong {
  color: #111827;
  text-align: right;
}

.reset-password-form .submit-btn {
  margin-top: 12px;
}

.otp-code-input {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-align: center;
}

.reset-helper-note {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 2px;
}

.reset-link-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.secondary-btn {
  align-items: center;
  background: #e2e8f0;
  border: none;
  border-radius: 14px;
  color: #0f172a;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  transition: all 0.3s;
}

.secondary-btn:hover {
  background: #cbd5e1;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 5px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s;
}

.checkbox-group label:hover {
  background: #e0e0e0;
}

/* Bigger checkbox */
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.skills-full {
  grid-column: span 2;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .form-card {
    flex-direction: column;
    height: auto;
    min-height: 90vh;
  }
  
  .left-section {
    width: 100%;
    padding: 50px 30px;
    min-height: 280px;
  }
  
  .right-section {
    padding: 40px 30px;
    overflow-y: visible;
  }

  .main-container {
    align-items: flex-start;
    padding: 15px;
  }
}

@media (max-width: 640px) {
  .main-container {
    padding: 10px;
  }
  
  .form-card {
    border-radius: 20px;
    min-height: calc(100vh - 20px);
  }
  
  .left-section {
    padding: 40px 20px;
    min-height: 220px;
  }
  
  .right-section {
    padding: 30px 20px;
  }
  
  .main-title {
    font-size: 38px;
  }

  .icon-container i {
    font-size: 100px;
  }

  .form-header h2 {
    font-size: 28px;
  }

  .submit-btn {
    font-size: 16px;
    padding: 13px;
  }

  .auth-link-row {
    justify-content: center;
  }

  .auth-modal-card {
    padding: 22px;
    border-radius: 20px;
  }

  .reset-identity-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .reset-identity-row strong {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .skills-full {
    grid-column: span 1;
  }

  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-title {
    font-size: 32px;
  }

  .subtitle {
    font-size: 16px;
  }

  .icon-container i {
    font-size: 80px;
  }

  .form-header h2 {
    font-size: 24px;
  }

  .form-header p {
    font-size: 15px;
  }

  .left-section {
    min-height: 180px;
    padding: 30px 15px;
  }

  .right-section {
    padding: 25px 15px;
  }

  .input-group input,
  .input-group select {
    padding: 11px 14px;
    font-size: 14px;
  }

  .submit-btn {
    font-size: 15px;
    padding: 12px;
    border-radius: 14px;
  }

  .switch-text {
    font-size: 14px;
    margin-top: 25px;
  }

  .popup-content {
    padding: 30px 25px;
    margin: 0 15px;
  }

  .popup-content h3 {
    font-size: 22px;
  }

  .popup-content p {
    font-size: 15px;
  }
}



#registerForm,
#loginForm {
  position: relative;
  z-index: 1;
}

body.redsea-login .form-card {
  border-color: #dc2626;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.22);
}

body.redsea-login .left-section {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

body.redsea-login .login-logo-outline::before,
body.redsea-login .login-logo-outline::after {
  background-image: url("logo_.png");
}

body.redsea-login .input-group label,
body.redsea-login .link,
body.redsea-login .text-link-btn {
  color: #b91c1c;
}

body.redsea-login .input-group input:focus,
body.redsea-login .input-group select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

body.redsea-login .submit-btn,
body.redsea-login .popup-btn {
  background-color: #dc2626;
}

body.redsea-login .submit-btn:hover,
body.redsea-login .popup-btn:hover {
  background-color: #b91c1c;
}

body.redsea-login .popup-content {
  border-color: #dc2626;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.24);
}
