/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base background styling */
html,
body,
.container-fluid,
.row,
.page-layout {
  background-color: #f1f2f4;
  font-family: "Roboto", sans-serif;
}

html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.page-layout {
  min-height: 100vh;
}

.advertisement-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.advertisement-section.loaded {
  opacity: 1;
}

.advertisement-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.content-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 30px;
  opacity: 0;
  animation: fadeInContent 1.2s ease-in-out forwards;
}

.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background-image: url("/images/shape.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

@keyframes fadeInContent {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.external-login-page .content-section {
  justify-content: flex-start;
  padding-top: 150px;
}

.page-content {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Language Selector
   ========================================================================== */

.language-selector {
  position: absolute;
  margin-top: 30px;
  right: 16px;
  z-index: 10;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-toggle:hover {
  border-color: #118ab2;
  box-shadow: 0 0 0 1px #118ab2;
}

.language-flag {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 12px;
}

.language-dropdown-icon {
  transition: transform 0.2s ease;
}

.language-toggle[aria-expanded="true"] .language-dropdown-icon {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 20;
  display: none;
}

.language-dropdown.show {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #212636;
}

.language-option:hover {
  background: #f5f5f5;
}

/* ==========================================================================
   Form Container
   ========================================================================== */

.form-container {
  max-width: 480px;
  margin: 0 auto;
  margin-top: 50px;
  padding: 40px 25px 32px;
  border-radius: 16px;
  font-family: "Public Sans", sans-serif;
}

/* Login specific spacing */
.login-page .form-container {
  margin-top: 50px;
}

/* External login specific spacing */
.external-login-page .form-container {
  margin-top: 0px;
}

/* MFA specific spacing */
.mfa-page .form-container {
  margin-top: 50px;
}

/* ==========================================================================
   Brand Header
   ========================================================================== */

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

/* Maintain proper spacing when title is hidden */
.brand-header:has(.title-alert-container) {
  gap: 16px;
  margin-bottom: 20px;
}

.brand-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 53px;
  border-radius: 18px;
}

.brand-logo {
  width: 220px;
  height: 53px;
  object-fit: contain;
}

.page-title {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5em;
  text-align: center;
  color: #1c252e;
  margin: 0;
}

/* ==========================================================================
   General Form
   ========================================================================== */

.page-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-form .input-fields-container {
  margin: 0;
}

/* ==========================================================================
   Title Area Alert Messages
   ========================================================================== */

/* Title alert container positioning */
.title-alert-container {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Title alert styling - Default error styling */
.title-alert {
  background-color: #fef2f2;
  border-left: 6px solid #dc2626;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 400px;
  min-height: 50px;
  max-height: 50px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Success alert styling */
.title-alert-success {
  background-color: #f1f5f9;
  border-left: 6px solid #64748b;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.title-alert-success .title-alert-message {
  color: #475569;
}

.title-alert-message {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  color: #dc2626;
  text-align: center;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 67.2px; /* 3 lines at line-height 1.4 */

  /* Modern browsers - Webkit line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Firefox fallback */
@supports not (-webkit-line-clamp: 3) {
  .title-alert-message {
    display: block;
    height: 67.2px;
  }
}

@media (max-width: 767.98px) {
  .title-alert {
    max-width: 320px;
    min-width: 280px;
    padding: 10px 14px;
    min-height: 64px;
    max-height: 64px;
  }

  .title-alert-message {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    max-height: 54.6px; /* 3 lines at line-height 1.3 */
  }

  /* Firefox fallback for mobile */
  @supports not (-webkit-line-clamp: 3) {
    .title-alert-message {
      height: 54.6px;
    }
  }
}

/* Hide page title when error exists */
.brand-header:has(.title-alert-container) .page-title {
  display: none;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 53px;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  padding: 0 12px;
  transition: all 0.2s ease;
}

.form-input-wrapper:focus-within {
  border-color: #118ab2;
  box-shadow: 0 0 0 1px #118ab2;
}

/* Autocomplete durumunda wrapper arkaplan rengi düzeltmesi */
.form-input-wrapper:has(.form-input:-webkit-autofill) {
  background: #ffffff;
}

/* Alternatif çözüm - tüm tarayıcılar için */
.form-input-wrapper {
  background: #ffffff !important;
}

.form-input {
  width: 100%;
  height: 53px;
  border: none;
  background: transparent;
  font-family: "Public Sans", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4666666666666666em;
  color: #1c252e;
  outline: none;
}

.form-input::placeholder {
  color: #919eab;
}

/* Autocomplete arkaplan rengi düzeltmesi */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
  -webkit-text-fill-color: #1c252e !important;
  transition: background-color 5000s ease-in-out 0s;
  background-color: #ffffff !important;
}

/* Firefox için autocomplete arkaplan rengi düzeltmesi */
.form-input:-moz-autofill,
.form-input:-moz-autofill:focus {
  background-color: #ffffff !important;
  color: #1c252e !important;
}

/* ==========================================================================
   Password Visibility Toggle
   ========================================================================== */

.password-visibility-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #637381;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.password-visibility-toggle:hover {
  background: rgba(99, 115, 129, 0.1);
}

/* ==========================================================================
   Form Options (Forgot Password)
   ========================================================================== */

.form-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  text-align: right;
}

.forgot-password-link {
  font-family: "Public Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5714285714285714em;
  color: #1c252e;
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: right;
  margin-left: auto;
}

.forgot-password-link:hover {
  color: #118ab2;
  text-decoration: underline;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.submit-button-wrapper {
  width: 100%;
}

.submit-button {
  width: 100%;
  height: 46px;
  background: #118ab2;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7333333333333334em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.submit-button:hover {
  background: #0f7a9c;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
  background: #0d6b87;
}

.submit-button:disabled {
  background: #e5e5e5;
  color: #919eab;
  cursor: not-allowed;
}

/* ==========================================================================
   Form Divider
   ========================================================================== */

.form-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 22px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(145, 158, 171, 0.4);
  border: none;
  margin: 0;
  stroke-dasharray: 2 3;
}

.divider-text {
  width: 40px;
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5em;
  text-transform: uppercase;
  text-align: center;
  color: #919eab;
  padding: 0 8px;
}

/* ==========================================================================
   Social Login Section
   ========================================================================== */

.social-login-section {
  width: 100%;
  padding: 0px 0px 32px;
}

/* Tablet and iPad Pro - center and provide appropriate spacing */
@media (max-width: 1366px) and (min-width: 768px) {
  .social-login-section {
    padding: 0px 0px 24px;
    max-width: 350px;
    margin: 0 auto;
  }
}

.social-buttons-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  justify-content: space-between;
}

/* Desktop - ensure buttons stay in same row and match form width */
/* Exclude iPad Pro from desktop view */
@media (min-width: 1367px) {
  .social-buttons-grid {
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: space-between;
  }

  .social-login-button {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
}

/* Tablet and iPad Pro - keep buttons horizontal like mobile */
@media (max-width: 1366px) and (min-width: 768px) {
  .social-buttons-grid {
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
  }

  .social-login-button {
    flex: 1;
    min-width: 0;
    max-width: none;
    min-height: 48px;
  }
}

/* Mobile - align with content area and match form button width */
@media (max-width: 767.98px) {
  .social-login-section {
    padding: 0px 0px 16px;
  }

  .social-buttons-grid {
    gap: 12px;
    width: 100%;
    margin: 0;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
  }

  .social-login-button {
    flex: 1;
    min-width: 0;
    min-height: 48px;
  }
}

.social-login-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 18px 10px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
  flex: 1;
  text-align: center;
  text-decoration: none;
  min-height: 60px;
  min-width: 0;
}

.social-login-button:hover {
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.external-login-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #118ab2;
  opacity: 0.8;
}

.institutional-icon {
  width: 19px;
  height: 17px;
}

.social-login-button span {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3em;
  color: #434a60;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.social-brand,
.social-action {
  font-weight: 500;
  font-size: inherit;
}

/* Text styling for tablet and iPad Pro horizontal layout */
@media (max-width: 1366px) and (min-width: 768px) {
  .social-login-button span {
    white-space: normal;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
  }

  .social-brand,
  .social-action {
    font-size: 10px;
  }
}

/* Desktop - allow text wrapping for larger screens */
@media (min-width: 1367px) {
  .social-login-button span {
    white-space: normal;
    text-align: center;
    word-break: break-word;
  }
}

@media (max-width: 764px) {
  .social-login-button span {
    font-size: 8px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
  }

  .social-brand,
  .social-action {
    font-size: 8px;
  }
}

/* ==========================================================================
   Help Section
   ========================================================================== */

.help-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Tablet and iPad Pro help section alignment */
@media (max-width: 1366px) and (min-width: 768px) {
  .help-section {
    margin-top: 16px;
    margin-bottom: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Tablet and iPad Pro arkaplan görsel ayarları */
  .content-section::before {
    width: 350px;
    height: 350px;
    opacity: 0.12;
  }
}

.help-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
  height: auto;
  min-height: 32px;
}

.help-button:hover {
  background: #f5f5f5;
}

.help-icon {
  width: 16px;
  height: 16px;
  color: #212636;
}

.help-button span {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6923076923076923em;
  letter-spacing: 1.5384615613864017%;
  color: #212636;
}

/* ==========================================================================
   Input Fields Container
   ========================================================================== */

.input-fields-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */

.loading-spinner-wrapper {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 10;
  border-radius: 8px;
}

.loading-spinner-wrapper.show {
  display: flex;
}

/* Loading state for clickable elements */
.loading-disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   Cookie Policy Notice
   ========================================================================== */

.cookie-policy-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Public Sans", sans-serif;
}

@media (max-width: 767.98px) {
  .cookie-policy-notice {
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 100;
  }
}

.cookie-content {
  flex: 1;
  margin-right: 16px;
}

.cookie-message {
  font-size: 14px;
  color: #434a60;
}

.cookie-link {
  font-size: 14px;
  color: #118ab2;
  text-decoration: none;
}

.cookie-link:hover {
  text-decoration: underline;
}

.cookie-close-button {
  background: none;
  border: none;
  color: #919eab;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.cookie-close-button:hover {
  color: #637381;
}

/* ==========================================================================
   Mobile Responsive Styles (Consolidated)
   ========================================================================== */

@media (max-width: 767.98px) {
  /* Content Section */
  .content-section {
    padding: 0 20px;
  }

  .content-section::before {
    width: 280px;
    height: 280px;
    left: 36px;
    transform: none;
    opacity: 0.2;
  }

  .page-content {
    min-height: 100vh;
    justify-content: flex-start;
    padding: 0;
    max-width: 390px;
  }

  /* Language Selector */
  .language-selector {
    margin-top: 20px;
    margin-right: 5px;
  }

  /* Brand Header */
  .brand-logo-wrapper {
    width: 220px;
    height: 36px;
    border-radius: 18px;
  }

  .brand-header {
    gap: 16px;
    margin-bottom: 36px;
  }

  .brand-logo {
    width: 220px;
    height: 36px;
  }

  .page-title {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
  }

  /* Page Form */
  .page-form {
    gap: 16px;
  }

  .form-container {
    max-width: 500px;
    padding: 0 4px;
    border-radius: 0;
    background: transparent;
  }

  /* Login specific mobile adjustments */
  .login-page .form-container {
    margin-top: 100px;
  }

  /* External login specific mobile adjustments */
  .external-login-page .form-container {
    margin-top: 80px;
  }

  /* MFA specific mobile adjustments */
  .mfa-page .form-container {
    margin-top: 80px;
  }

  /* Form Elements */
  .form-input-wrapper {
    min-height: 48px;
    padding: 0 12px;
  }

  .form-input {
    height: 48px;
  }

  .submit-button {
    height: 48px;
  }

  .recovery-submit-button {
    height: 48px;
  }

  .recovery-back-button {
    height: 48px;
  }

  .recovery-option-button {
    height: 48px;
  }

  .recovery-cancel-button {
    height: 48px;
  }

  /* Alert */
  .title-alert {
    max-width: 320px;
    min-width: 280px;
    padding: 10px 14px 10px 40px;
    min-height: 64px;
    max-height: 64px;
    gap: 10px;
  }

  .title-alert-message {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    max-height: 54.6px;
  }

  /* Social Login */
  .social-login-section {
    padding: 0px 0px 16px;
  }

  .social-login-button {
    min-height: 48px;
    padding: 12px 4px 8px;
    gap: 4px;
  }

  .social-login-button span {
    font-size: 8px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
  }

  .social-brand,
  .social-action {
    font-size: 8px;
  }

  /* Help Section */
  .help-section {
    margin-top: 8px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 390px;
    padding: 0 4px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Input Fields Container */
  .input-fields-container {
    gap: 16px;
  }

  /* Cookie Policy */
  .cookie-policy-notice {
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 100;
  }
}

/* ==========================================================================
   Page Specific Styles
   ========================================================================== */

/* ==========================================================================
   Login Page Specific Styles
   ========================================================================== */

/* Login page doesn't need mobile header controls */
.login-page .mobile-header-controls {
  display: none !important;
}

/* Login page inherits default language selector positioning */

/* ==========================================================================
   External Login Page Specific Styles
   ========================================================================== */

/* External login and MFA pages show mobile header controls */
.external-login-page .mobile-header-controls,
.mfa-page .mobile-header-controls {
  display: flex;
}

/* Hide desktop language selector on external login and MFA pages when mobile header is present */
@media (max-width: 1366px) {
  .external-login-page .language-selector:not(.mobile-language-selector),
  .mfa-page .language-selector:not(.mobile-language-selector) {
    display: none;
  }
}

/* External Login Header */
.external-login-header {
  text-align: center;
  margin-bottom: 20px;
}

.external-login-header .page-title {
  margin-bottom: 12px;
}

/* External Login Header */
.external-login-header .brand-logo-wrapper {
  margin: 0 auto 24px;
}

/* External Login Form */
.external-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* External Login Options */
.external-login-options {
  margin-top: 0;
  margin-bottom: 0;
}

.forgot-provider-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.forgot-provider-link {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5714;
  color: #1c252e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-provider-link:hover {
  color: #118ab2;
  text-decoration: underline;
}

/* External Submit Button */
.external-submit-button {
  width: 100%;
  height: 46px;
  background: #118ab2;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7333333333333334em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.external-submit-button span {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7333;
  color: #ffffff;
  flex-grow: 1;
}

.external-submit-button i {
  font-size: 14px;
  color: #ffffff;
  opacity: 0.9;
}

.external-submit-button:hover {
  background: #0f7a9c;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.15);
}

.external-submit-button:active {
  background: #0d6b87;
}

.external-submit-button:disabled {
  background: #e5e5e5;
  color: #919eab;
  cursor: not-allowed;
}

.external-submit-button:disabled span,
.external-submit-button:disabled i {
  color: #919eab;
}

/* Back to Login */
.back-to-login {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.back-to-login-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4667;
  color: #118ab2;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.back-to-login-link:hover {
  background-color: rgba(17, 138, 178, 0.04);
  color: #0f7a96;
  text-decoration: none;
}

.back-to-login-link i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.back-to-login-link:hover i {
  transform: translateX(-2px);
}

/* External Login Back to Login Button (Recovery Style) */
.external-back-to-login {
  display: flex;
  justify-content: center;
}

.external-recovery-back-button {
  width: 100%;
  height: 46px;
  background: #ffffff;
  border: 1px solid rgba(67, 74, 96, 0.5);
  border-radius: 8px;
  color: #434a60;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7333333333333334em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
}

.external-recovery-back-button:hover {
  transform: translateY(-1px);
  box-shadow: 0px 4px 12px 0px rgba(67, 74, 96, 0.15);
  border-color: rgba(67, 74, 96, 0.7);
}

.external-recovery-back-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  gap: 8px;
}

.external-recovery-back-icon {
  color: #434a60;
  font-size: 16px;
}

.external-recovery-back-text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.73;
  color: #434a60;
}

/* ==========================================================================
   Mobile Header Controls (Common for all pages except login)
   ========================================================================== */

.mobile-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 16px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

/* Hide mobile header controls on login page */
.login-page .mobile-header-controls {
  display: none;
}

/* Mobile Back Button (FAB Style) */
.mobile-back-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  box-shadow: 0px 1px 18px 0px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.mobile-back-button:hover {
  box-shadow: 0px 2px 24px 0px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.mobile-back-button:active {
  transform: translateY(0);
}

.mobile-back-button i {
  font-size: 16px;
  color: #667085;
  transition: color 0.2s ease;
}

.mobile-back-button:hover i {
  color: #118ab2;
}

/* Mobile Language Selector */
.mobile-language-selector {
  position: relative;
  top: auto;
  right: auto;
  margin-top: 20px;
}

/* Mobile and iPad Pro Responsive for Login, External Login and MFA */
@media (max-width: 1366px) {
  .login-page .content-section {
    padding-top: 20px; /* Reduced space for mobile header */
  }

  .external-login-page .content-section,
  .mfa-page .content-section {
    padding-top: 30px; /* Space for mobile header */
  }
}

/* External Login Header */
.external-login-header {
  text-align: center;
  margin-bottom: 20px;
}

.external-login-header .page-title {
  margin-bottom: 12px;
}

/* External Login Header */
.external-login-header .brand-logo-wrapper {
  margin: 0 auto 24px;
}

/* Mobile specific styles for external login header and forms */
@media (max-width: 768px) {
  .external-login-header {
    margin-bottom: 32px;
  }

  .external-login-header .brand-logo-wrapper {
    margin-bottom: 20px;
  }

  .external-login-header .page-title {
    font-size: 16px;
    margin-top: 20px;
  }

  .external-form {
    gap: 20px;
  }

  .external-submit-button {
    height: 48px;
    margin-top: 10px;
  }

  .external-submit-button span {
    font-size: 14px;
  }

  .back-to-login-link {
    font-size: 14px;
    padding: 6px 10px;
  }

  .external-recovery-back-button {
    height: 48px;
  }

  .external-recovery-back-text {
    font-size: 14px;
  }
}

/* ==========================================================================
   Recover Password Page Styles
   ========================================================================== */

/* Recover Password Page Specific */
.recover-password-page .recover-brand-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.recover-password-page .recover-logo-background {
  width: 96px;
  height: 96px;
  background: #ffffff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
}

.recover-password-page .recover-brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* MFA Page Specific */
.mfa-page .mfa-brand-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.mfa-page .mfa-logo-background {
  width: 96px;
  height: 96px;
  background: #ffffff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
}

.mfa-page .mfa-brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* MFA Page Title and Description Spacing */
.mfa-page .page-title {
  margin-top: 26px;
}

.mfa-page .page-description {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.57;
  color: #637381;
  text-align: center;
  margin-bottom: 32px;
}

/* Form Input Group Styles */
.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Phone Input Group - Single Input Layout */
.phone-input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.phone-number-field {
  width: 100%;
}

/* Email Field */
.email-field {
  width: 100%;
}

/* Recovery Page Layout */

.recover-password-page .form-container {
  max-width: 480px;
  margin: 0 auto;
  margin-top: 50px;
  padding: 40px 25px 32px;
  border-radius: 16px;
  font-family: "Public Sans", sans-serif;
}

.recover-password-page .page-title {
  margin-top: 26px;
}

/* Mobile specific styles for title positioning */
@media (max-width: 767.98px) {
  .recover-password-page .page-title {
    margin-top: 38px; /* More space below logo on mobile */
  }
}

.recover-password-page .page-description {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.57;
  color: #637381;
  text-align: center;
  margin-bottom: 32px;
}

/* Recovery Options */
.recovery-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  margin-top: 32px;
}

.recovery-option-button {
  width: 100%;
  height: 46px;
  background: #118ab2;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7333333333333334em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.recovery-option-button:hover {
  background: #0f7a9c;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.15);
}

.recovery-option-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.recovery-option-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.recovery-option-title {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.73;
  color: #ffffff;
}

.recovery-option-arrow {
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 22px;
}

.recovery-cancel-button {
  width: 100%;
  height: 46px;
  background: #ffffff;
  border: 1px solid rgba(67, 74, 96, 0.5);
  border-radius: 8px;
  color: #434a60;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7333333333333334em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
}

.recovery-cancel-button:hover {
  transform: translateY(-1px);
  box-shadow: 0px 4px 12px 0px rgba(67, 74, 96, 0.15);
  border-color: rgba(67, 74, 96, 0.7);
}

.recovery-cancel-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  gap: 8px;
}

.recovery-cancel-icon {
  color: #434a60;
  font-size: 16px;
}

.recovery-cancel-text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.73;
  color: #434a60;
}

/* Form Actions */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 40px;
}

.recovery-submit-button {
  width: 100%;
  height: 46px;
  background: #118ab2;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7333333333333334em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.recovery-submit-button:hover {
  background: #0f7a9c;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.15);
}

.recovery-submit-button:disabled {
  background: #e5e5e5;
  color: #919eab;
  cursor: not-allowed;
  box-shadow: none;
}

.recovery-submit-button:disabled:hover {
  background: #e5e5e5;
  transform: none;
  box-shadow: none;
}

.recovery-back-button {
  width: 100%;
  height: 46px;
  background: #ffffff;
  border: 1px solid rgba(67, 74, 96, 0.5);
  border-radius: 8px;
  color: #434a60;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7333333333333334em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
}

.recovery-back-button:hover {
  transform: translateY(-1px);
  box-shadow: 0px 4px 12px 0px rgba(67, 74, 96, 0.15);
  border-color: rgba(67, 74, 96, 0.7);
}

.recovery-back-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  gap: 8px;
}

.recovery-back-icon {
  color: #434a60;
  font-size: 16px;
}

.recovery-back-text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.73;
  color: #434a60;
}

/* Tablet and iPad Pro specific styles for recover password, external login and MFA */
@media (max-width: 1366px) and (min-width: 768px) {
  .recover-password-page .content-section,
  .external-login-page .content-section,
  .mfa-page .content-section {
    justify-content: flex-start;
    padding-top: 100px; /* Same padding for all pages */
  }

  .recover-password-page .form-container,
  .external-login-page .form-container,
  .mfa-page .form-container {
    margin-top: 20px;
  }

  .recovery-options {
    gap: 16px;
    padding: 16px 0;
    margin-top: 16px;
  }

  .form-actions {
    margin-top: -16px;
  }
}

/* Desktop specific recover password styles */
@media (min-width: 1367px) {
  .recover-password-page .form-container {
    margin-top: 50px;
  }

  .recovery-options {
    gap: 16px;
    padding: 16px 0;
    margin-top: 32px;
  }

  .form-actions {
    margin-top: -16px;
  }
}

/* Mobile specific recover password styles */
@media (max-width: 767.98px) {
  /* Content Section */
  .recover-password-page .content-section {
    padding: 30px 20px 0; /* Top padding consistent with other pages */
  }

  .recover-password-page .content-section::before {
    width: 280px;
    height: 280px;
    left: 36px;
    transform: none;
    opacity: 0.2;
  }

  .recover-password-page .page-content {
    max-width: 390px;
  }

  .recover-password-page .form-container {
    max-width: 500px;
    padding: 0 4px;
    border-radius: 0;
    background: transparent;
    margin-top: 100px;
  }

  .recover-password-page .page-description {
    font-size: 14px;
    margin-bottom: 24px;
    margin-top: 12px; /* More space below title on mobile */
  }

  .recover-password-page .brand-header {
    gap: 16px;
    margin-bottom: 36px;
  }

  /* MFA mobile styles */
  .mfa-page .page-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .mfa-page .brand-header {
    gap: 16px;
    margin-bottom: 36px;
  }

  .recovery-options {
    padding: 20px 0;
    gap: 16px;
    justify-content: flex-end;
    min-height: calc(100vh - 420px);
  }

  .form-actions {
    margin-top: -16px;
    gap: 16px;
  }

  .phone-input-group {
    gap: 16px;
  }

  #recovery-form-section {
    margin-top: 24px;
    gap: 16px;
  }
}
