/* Login Page Styles */

/* Font Imports */
@font-face {
  font-family: 'Avenir';
  src: url('../fonts/avenir/Avenir-LightOblique-08.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Avenir Book (Regular) */
@font-face {
  font-family: 'Avenir';
  src: url('../fonts/avenir/Avenir-Book-01.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Alexandria (Arabic) */
@font-face {
  font-family: 'Alexandria';
  src: url('../fonts/Alexandria-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alexandria';
  src: url('../fonts/Alexandria-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --font-family-avenir: 'Avenir', 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-avenir: 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);
  font-size: 12px;
}

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

body {
  font-family: var(--font-family-avenir);
  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;
  padding: 0px;
  gap: 32px;
  position: absolute;
  width: 930px;
  height: 502px;
  left: calc(50% - 930px/2);
  top: calc(50% - 502px/2);
}

/* Login Form */
.login-form {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 60px;
  gap: 90px;
  width: 930px;
  height: 454px;
  background: #FFFFFF;
  border: 1px solid #DADADA;
  border-radius: 16px;
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

/* Left Side: Logo Section */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  width: 332px;
  padding-right: 40px;
  border-right: 1px solid var(--divider-color);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

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

.tagline {
  font-family: var(--font-family-avenir);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: var(--primary);
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Right Side: Form Section */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  min-width: 0;
  padding-left: 40px;
}

/* Section Header */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 3px;
}

.section-header h1 {
  font-family: var(--font-family-avenir);
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 0 0;
}

.section-header p {
  font-family: var(--font-family-avenir);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 30px;
  color: var(--text-gray);
  margin: 0;
}

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

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

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

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

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="number"] {
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-family-avenir);
  font-size: 12px;
  color: var(--text-dark);
  transition: all 0.3s ease;
  height: 48px;
  width: 100%;
}

/* Password Input with Toggle */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light-gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

[dir="rtl"] .password-input-wrapper input {
  padding-right: 16px;
  padding-left: 48px;
}

[dir="rtl"] .password-toggle-btn {
  right: auto;
  left: 12px;
}

.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-avenir);
  font-size: 12px;
  line-height: 16px;
  color: var(--error);
  margin-top: 4px;
  text-align: left;
}

/* Remember Me & Forgot Password */
.remember-forgot {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  margin-bottom: 16px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-family-avenir);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  color: var(--text-dark);
}

.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.forgot-link {
  font-family: var(--font-family-avenir);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  color: var(--text-gray);
  text-decoration: none;
}

.forgot-link:hover {
  color: var(--primary);
}

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

.btn-primary {
  width: 100%;
  height: 41px;
  padding: 12px 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-family-avenir);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.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-family: var(--font-family-avenir);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  color: var(--gray-80);
  margin: 0;
  text-align: left;
}

.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"] .logo-section {
  padding-right: 0;
  padding-left: 40px;
  border-right: none;
  border-left: 1px solid var(--divider-color);
  align-items: flex-end;
}

[dir="rtl"] .form-section {
  padding-left: 0;
  padding-right: 40px;
}



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

[dir="rtl"] .form-group label {
  text-align: right;
  font-family: var(--font-family-alexandria);
}

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

[dir="rtl"] .remember-forgot {
  flex-direction: row-reverse;
}

[dir="rtl"] .remember-label {
  flex-direction: row-reverse;
}

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

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

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

[dir="rtl"] .logo-section {
  border-left: 1px solid var(--divider-color);
}
/* RTL Responsive */
@media (max-width: 960px) {
  [dir="rtl"] .logo-section {
    border-left: none;
    padding-left: 0;
    align-items: center;
  }

  [dir="rtl"] .form-section {
    padding-right: 0;
  }

  [dir="rtl"] .section-header {
    align-items: center;
  }

  [dir="rtl"] .section-header h1,
  [dir="rtl"] .section-header p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  [dir="rtl"] .remember-forgot {
    flex-direction: column;
    align-items: flex-end;
  }
}

/* Responsive Design */
@media (max-width: 960px) {
  .login-container {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    padding: 20px;
  }

  .login-form {
    width: 100%;
    max-width: 930px;
    flex-direction: column;
    height: auto;
    gap: 32px;
    padding: 32px;
  }

  .logo-section {
    align-items: center;
    width: 100%;
    border-right: none;
    padding-right: 0;
  }

  .form-section {
    width: 100%;
    padding-left: 0;
  }

  .section-header {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .login-container {
    padding: 16px;
  }

  .login-form {
    padding: 24px;
    gap: 24px;
  }

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

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

  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

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

  .login-container {
    padding: 10px;
  }

  .login-form {
    padding: 20px;
  }

  .logo img {
    width: 100px;
  }

  .btn-primary {
    font-size: 13px;
  }
}


/* Frame 1984078362 */

/* Auto layout */


