/* Login Page - New Design */

:root {
  --hot-pink: #e6007a;
  --dark-text: #343e3a;
  --gray-text: #79747e;
  --edu-blue: #307df6;
  --white: #ffffff;
  --border-gray: #79747e;
}

* {
  box-sizing: border-box;
}

html {
  --mdc-typography-font-family: "Rubik", sans-serif;
  margin: 0;
  height: 100%;
}

body {
  margin: 0;
  font-family: "Rubik", sans-serif;
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Main page container */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--white);
}

/* Header */
.login-header {
  position: absolute;
  top: 2rem;
  right: 3rem;
  z-index: 10;
}

.logo {
  height: 2rem;
}

/* Welcome section */
.welcome-section {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background-color: var(--white);
}

.welcome-title {
  font-family: "anomalia_demibold", "Rubik", sans-serif;
  font-size: 3rem;
  font-weight: 500;
  color: var(--dark-text);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.welcome-title .highlight {
  color: var(--hot-pink);
}

.welcome-subtitle {
  font-size: 1.5rem;
  color: var(--dark-text);
  margin: 0;
  line-height: 1.6;
}

/* Main login container */
.login-container {
  display: flex;
  flex: 1;
  width: 100%;
}

/* Login columns */
.login-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 4rem;
}

/* Teacher column - left side */
.teacher-column {
  background-color: var(--white);
  align-items: center;
  justify-content: flex-start;
  padding-top: 1rem;
  order: 2;
  position: relative;
}

/* Page footer */
.login-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3.5rem;
  border-top: 1px solid #e5e7eb;
  background-color: var(--white);
  direction: rtl;
}

.login-page-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  direction: rtl;
}

.login-page-footer .footer-separator {
  color: #595959;
  font-size: 0.875rem;
  font-weight: 400;
}

.login-page-footer .footer-link {
  color: #595959;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 400;
}

.login-page-footer .footer-link:hover {
  text-decoration: underline;
}

.footer-arison {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--dark-text);
  font-style: italic;
  direction: ltr;
}

.footer-arison-img {
  height: 1.4rem;
  vertical-align: middle;
}


/* Student column - right side */
.student-column {
  background: linear-gradient(to top, #e8f4f0 0%, #f5fafa 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1rem;
  order: 1;
}

.student-column::before {
  content: '';
  position: absolute;
  left: -43%;
  bottom: -2px;
  width: 150%;
  height: 100%;
  background-image: url('/public/uploads/sunshine.png');
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: left bottom;
  transform: scaleX(-1);
  z-index: 0;
  -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
  mask-image: linear-gradient(to top, black 60%, transparent 100%);
}

.student-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  padding: 0 2rem;
}

.student-decoration {
  display: none;
}

/* Column titles */
.column-title {
  font-family: "Rubik", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin: 0 0 2rem;
  text-align: center;
  position: relative;
  width: 100%;
}

/* EDU Login Button */
.edu-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 350px;
  height: 3.5rem;
  background-color: var(--edu-blue);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.edu-login-btn:hover {
  background-color: #2563eb;
}

.edu-icon {
  height: 1.8rem;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 350px;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #d1d5db;
}

.divider span {
  padding: 0 1rem;
  color: var(--gray-text);
  font-size: 1rem;
}

/* Forms */
.login-form {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

.student-form {
  margin-top: 1rem;
}

/* Input containers */
.input-container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.login-input {
  width: 100%;
  height: 3.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
  text-align: right;
  direction: rtl;
  background-color: var(--white);
}

.login-input:focus {
  border-color: var(--hot-pink);
}

.login-input::placeholder {
  color: transparent;
}

.input-label {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-text);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s;
  background-color: var(--white);
  padding: 0 0.25rem;
}

.login-input:focus + .input-label,
.login-input:not(:placeholder-shown) + .input-label {
  top: 0;
  font-size: 0.85rem;
  color: var(--hot-pink);
}

/* Student input styling */
.student-column .login-input {
  border-color: var(--hot-pink);
  background-color: var(--white);
}

.student-column .input-label {
  background-color: var(--white);
}

.student-column .login-input:focus + .input-label,
.student-column .login-input:not(:placeholder-shown) + .input-label {
  background-color: var(--white);
}

/* Eye button for password */
#eye_btn {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--hot-pink);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}

/* Forgot password link */
.forgot-password-link {
  color: var(--hot-pink);
  font-size: 0.95rem;
  text-decoration: none;
  text-align: right;
  margin-bottom: 1.5rem;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* Submit buttons */
.submit-btn {
  width: 100%;
  height: 3.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pink-btn {
  background-color: var(--hot-pink);
  color: var(--white);
}

.pink-btn:hover {
  background-color: #d10069;
}

/* MFA Form Container */
.mfa_form_container {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Reset Password Container */
.reset-password-container {
  width: 100%;
  max-width: 350px;
}

.reset-password-container h4 {
  font-size: 1.2rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

/* Footer */
.login-footer {
  background-color: var(--white);
  padding: 1rem 2rem;
  border-top: 1px solid #e5e7eb;
}

.footer-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  direction: rtl;
}

.copyright {
  color: var(--dark-text);
  font-size: 0.9rem;
}

.footer-separator {
  color: #d1d5db;
}

.footer-link {
  color: var(--dark-text);
  font-size: 0.9rem;
  text-decoration: none;
}

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

/* Validation messages */
.validation_message {
  background: #fee2e2;
  color: #dc2626;
  width: 100%;
  max-width: 350px;
  text-align: right;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.validation_message::before {
  content: "* ";
}

.validation_message_1 {
  background: #dcfce7;
  color: #16a34a;
  width: 100%;
  max-width: 350px;
  text-align: right;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Hide default footer on login page */
.arison_footer_desktop,
.arison_footer_mobile {
  display: none;
}

/* Autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:active,
input:-webkit-autofill:focus {
  transition: background-color 600000s 0s, color 600000s 0s;
}

.whatsapplink {
  position: absolute;
  left: -15px;
  top: 30px;
  transform: translateY(-50%);
  width: 110px;
  height: 110px;
  display: block;
  background-image: url(/public/uploads/whatsup_desktop.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 9999;
  transition: transform 0.2s ease;
}

.whatsapplink:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .login-page {
    position: relative;
    overflow-x: hidden;
  }

  .whatsapplink {
    background-image: url(/public/uploads/whatsup_mobile.svg);
    width: 90px;
    height: 90px;
    top: 40px !important;
  }

  .right_col::before {
    display: none !important;
  }

  .right_col::after {
    display: none !important;
  }

  body {
    min-height: 550px;
    font-family: Rubik, sans-serif !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .mfa_form_container {
    /* width: 100% !important; */
    display: flex !important;
    margin: 0;
    padding: 0 !important;
    right: 0 !important;
    left: 0;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    background-color: rgb(255 255 255) !important;
  }

  .mfa_form .mdc-button {
    width: 100% !important;
  }

  .login-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: auto;
    padding: 0;
    background: transparent;
    z-index: 10;
  }

  .logo {
    height: 1.5rem;
  }

  .welcome-section {
    padding: 3rem 1.5rem 2rem;
    background: linear-gradient(to top, #e8f4f0 0%, #f5fafa 50%, #ffffff 100%);
    min-height: 180px;
    position: relative;
    overflow: hidden;
  }

  .welcome-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    right: -100px;
    bottom: -235px;
    background: url('/public/uploads/sunshine.png') no-repeat center / cover;
    transform: scale(-1, -1);
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  }

  .welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -50px;
    background: linear-gradient(to top, #ffffff 0%, #ffffff 10%, transparent 50%);
    z-index: 1;
  }

  .welcome-section > * {
    position: relative;
    z-index: 1;
  }

  .welcome-title {
    font-size: 1.75rem;
  }

  .welcome-title .highlight {
    display: block;
  }

  .welcome-subtitle {
    font-size: 0.95rem;
  }

  .login-container {
    flex-direction: column;
  }

  .login-column {
    padding: 1.5rem;
    order: unset;
  }

  .student-column {
    background: var(--white);
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    order: 1;
  }

  .student-column::before {
    display: none;
  }

  .teacher-column {
    background: var(--white);
    padding-bottom: 2rem;
    order: 2;
  }

  .student-decoration {
    display: none;
  }

  .column-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .login-form,
  .edu-login-btn,
  .divider,
  .mfa_form_container {
    max-width: 100%;
  }

  .student-content {
    max-width: 100%;
    padding: 0;
  }

  .student-form,
  .student-form .login-input,
  .student-form .submit-btn {
    max-width: 100%;
    width: 100%;
  }

  .student-column .login-input {
    border-color: var(--hot-pink);
  }

  .login-page-footer {
    flex-direction: column-reverse;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: center;
  }

  .login-page-footer .footer-links {
    justify-content: center;
  }

  .footer-arison {
    justify-content: center;
    font-size: 0.8rem;
  }
}

/* Additional styles for compatibility with existing partials */
.login_form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mdc-button--raised:not(:disabled) {
  background-color: var(--hot-pink);
  width: 100%;
  height: 3.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.login_input_container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.login_label {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-text);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s;
  background-color: var(--white);
  padding: 0 0.25rem;
}

.email_input_container {
  margin-bottom: 1rem;
}

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

.mfa_form p {
  font-size: 1rem;
  color: var(--gray-text);
  text-align: center;
}

.mfa_form_title_container {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 1rem;
  text-align: center;
}

.mfa_again_btn {
  color: var(--hot-pink);
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.mfa_again_btn:hover {
  text-decoration: underline;
}

h4.reset_pass_title {
  font-size: 1.2rem;
  color: var(--dark-text);
  margin: 1rem 0;
  font-weight: 600;
}

.margin_top_class {
  margin-top: 1.5rem;
}
