/* Login Page Styles */

/* Font Imports */
@font-face {
  font-family: 'Alexandria';
  src: url('../fonts/Alexandria-Regular.woff2') format('woff2'),
       url('../fonts/Alexandria-Regular.woff') format('woff'),
       url('../fonts/Alexandria-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/rubik.woff2') format('woff2'),
       url('../fonts/rubik.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* CSS Variables */
:root {
  --font-family-rubik: 'Rubik', sans-serif;
  --font-family-alexandria: 'Alexandria', 'Arial', sans-serif;
  --primary: #22297A;
  --secondary: #E98024;
  --gray-10: #F5F5F5;
  --gray-20: #F8F9FB;
  --gray-40: #898989;
  --gray-60: #606060;
  --gray-80: #262626;
  --text-dark: #0B0B0B;
  --text-gray: #747474;
  --text-light-gray: #9E9EA7;
  --white: #FFFFFF;
  --error: #E82929;
  --border-color: #DADADA;
  --input-bg: #F3F3F4;
  --divider-color: #EAEAEA;
}

html[dir="rtl"] {
  --font-family-rubik: var(--font-family-alexandria);
}

[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] button,
[dir="rtl"] select,
[dir="rtl"] textarea {
  font-family: var(--font-family-alexandria);
}

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

body {
  font-family: var(--font-family-rubik);
  background-color: var(--gray-10);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Login Page Layout */
.login-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Login Form */
.login-form {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 930px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 8px;
}

.logo img {
  width: 120px;
  height: auto;
}

/* Account Type Section */
.account-type-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-header {
  text-align: center;
  margin-bottom: 10px;
  font-family: var(--font-family-rubik);
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: var(--primary);
  margin-bottom: 4px;
}

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

.section-header p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 21px;
}

/* Account Type Buttons */
.account-types {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.account-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: transparent;
  border: 1px solid #C8C8C8;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family-rubik);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-80);
}

.account-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(34, 41, 122, 0.1);
}

.account-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.account-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Divider */
.divider {
  border: none;
  border-bottom: 1px solid var(--divider-color);
  margin: 8px 0;
}

/* Form Fields */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 24px;
}

.required {
  color: var(--error);
}

.form-group input {
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-family-rubik);
  font-size: 12px;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 41, 122, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light-gray);
}

/* Error States */
.form-group input.error {
  border-color: var(--error);
  background-color: #FFF5F5;
}

.form-group input.error:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(232, 41, 41, 0.1);
}

.error-message {
  display: block;
  font-family: var(--font-family-rubik);
  font-size: 12px;
  line-height: 16px;
  color: var(--error);
  margin-top: 4px;
  text-align: left;
}

.tax-validation-message {
  display: block;
  font-family: var(--font-family-rubik);
  font-size: 12px;
  line-height: 16px;
  margin-top: 4px;
  text-align: left;
}

.form-group input[readonly] {
  background-color: #F0F0F0;
  cursor: not-allowed;
}

/* Spinner for tax validation */
.spinner-border-sm {
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: text-bottom;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Form Actions */
.form-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 10px; 

}


.form-actions button {
margin: 20px;
width: 434px;
height: 41px;


}
.btn-primary {
  padding: 12px 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-family-rubik);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.btn-primary:hover {
  background: #1a1f5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 41, 122, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.signin-link {
  font-size: 13px;
  color: var(--gray-80);
  line-height: 16px;
}

.signin-link a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.signin-link a:hover {
  color: #d17020;
}

/* Footer Text */
.footer-text {
  font-size: 14px;
  color: var(--text-light-gray);
  line-height: 16px;
  text-align: center;
}

.text-secondary {
  color: var(--secondary);
}

.text-primary {
  color: var(--primary);
}

/* RTL Support */
[dir="rtl"] .section-header h1,
[dir="rtl"] .section-header p {
  text-align: right;
}

[dir="rtl"] .form-group label {
  text-align: right;
}

[dir="rtl"] .form-group input {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .error-message {
  text-align: right;
}

[dir="rtl"] .tax-validation-message {
  text-align: right;
}

[dir="rtl"] .signin-link {
  text-align: right;
}

[dir="rtl"] .footer-text {
  text-align: center;
}

/* RTL Responsive */
@media (max-width: 768px) {
  [dir="rtl"] .section-header h1,
  [dir="rtl"] .section-header p {
    text-align: center;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-form {
    padding: 24px;
  }

  .account-types {
    gap: 20px;
  }

  .account-btn {
    padding: 12px 30px;
    font-size: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-header h1 {
    font-size: 18px;


  }



  .section-header p {
    font-size: 12px;
  }

  .form-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .login-form {
    padding: 20px;
  }

  .logo img {
    width: 100px;
  }

  .account-btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .account-icon {
    width: 50px;
    height: 50px;
  }
}



/* Frame 1984078359 */

/* Auto layout */



