/* ============================================
   ORIGAMI LOGIN PAGE - CUSTOM STYLING
   ============================================ */

/* Root variables for consistent theming */
:root {
  --primary-red: #e31e24;
  --dark-bg: #1a1a1a;
  --light-bg: #ffffff;
  --text-dark: #333333;
  --text-muted: #666666;
  --border-color: #dddddd;
  --input-border: #cccccc;
}

/* ============================================
   SPLIT SCREEN LAYOUT
   ============================================ */

/* Main container - split screen layout */
.oe_website_login_container {
  display: flex;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Left panel - decorative dark side with pattern */
.oe_website_login_container::before {
  content: "";
  flex: 0 0 38%;       /* left panel width */
  background: var(--dark-bg) url("/Origami/static/images/black.png") center / cover no-repeat;
  min-height: 100vh;        /* make sure it fills the full height */
}


/* OAuth Buttons Styling */
.o_auth_oauth_providers .list-group-item {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.o_auth_oauth_providers .list-group-item:hover {
  background-color: #f8f9fa;
  border-color: #c6c6c6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.o_auth_oauth_providers .list-group-item i,
.o_auth_oauth_providers .list-group-item svg {
  font-size: 18px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Google button specific */
.o_auth_oauth_providers .list-group-item[href*="google"] i,
.o_auth_oauth_providers .list-group-item[href*="google"] svg {
  color: #4285f4;
}

/* Facebook button specific */
.o_auth_oauth_providers .list-group-item[href*="facebook"] i,
.o_auth_oauth_providers .list-group-item[href*="facebook"] svg {
  color: #1877f2;
}

/* ============================================
   FORM CONTAINER (RIGHT PANEL)
   ============================================ */

/* Right panel - form container */
.oe_login_form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 80px;
  background-color: var(--light-bg);
  width: 60% !important;
  max-width: 50% !important;
  margin: 0 auto;
}

/* Use flexbox ordering to move h2 heading to the top */
.oe_login_form h2 {
  order: -10;
  font-size: 36px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 40px;
  text-align: center;
  width: 100%;
}

/* Order OAuth providers after heading */
.o_auth_oauth_providers {
  order: -9;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  width: 100%;
  border: none;
  padding: 0;
}

/* Order email field */
.field-login {
  order: -8;
  width: 100%;
  margin-bottom: 20px;
}

/* Order password field */
.mb-3:has(#password) {
  order: -7;
  width: 100%;
  margin-bottom: 20px;
}

/* Order signup link */
.mt-2.text-center {
  order: -6;
  width: 100%;
  text-align: left !important;
  margin-bottom: 20px;
}

/* Order submit button container */
.oe_login_buttons {
  order: -5;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}

/* ============================================
   OAUTH BUTTONS
   ============================================ */

/* OAuth buttons - full width to match inputs */
.o_auth_oauth_providers .list-group-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--light-bg);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
  gap: 10px;
  width: 100%;
  font-weight: 400;
}


/* ============================================
   FORM FIELDS
   ============================================ */

/* Labels */
.oe_login_form label {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 400;
}

/* Input fields - full width to match OAuth buttons */
.oe_login_form input[type="text"],
.oe_login_form input[type="password"],
.oe_login_form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  font-size: 15px;
  color: var(--text-dark);
  background-color: var(--light-bg);
  transition: border-color 0.2s ease;
}

.oe_login_form input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.oe_login_form input::placeholder {
  color: #999999;
  font-size: 14px;
}

/* ============================================
   PASSWORD FIELD WITH FORGOT LINK
   ============================================ */

/* Password field label with forgot password link */
.oe_login_form label[for="password"] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.oe_login_form label[for="password"] a {
  font-size: 13px;
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 400;
}

.oe_login_form label[for="password"] a:hover {
  text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */

/* Submit button */
.oe_login_buttons button[type="submit"],
.oe_login_buttons .btn-primary {
  padding: 12px 40px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-transform: none;
}

.oe_login_buttons button[type="submit"]:hover,
.oe_login_buttons .btn-primary:hover {
  background-color: #c71a1f;
}

/* ============================================
   SIGNUP LINK
   ============================================ */

/* Sign up link styling */
.mt-2.text-center {
  font-size: 14px;
  color: var(--text-dark);
}

.mt-2.text-center a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 500;
}

.mt-2.text-center a:hover {
  text-decoration: underline;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hide the "Choose a user" button */
.o_user_switch_btn {
  display: none !important;
}

/* Alert messages */
.alert {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
  .oe_website_login_container::before {
    flex: 0 0 35%;
  }

  .oe_login_form {
    padding: 40px 50px;
    width: 65%;
  }
}

@media (max-width: 768px) {
  .oe_website_login_container {
    flex-direction: column;
  }

  .oe_website_login_container::before {
    flex: 0 0 200px;
    min-height: 200px;
  }

  .oe_login_form {
    width: 100%;
    padding: 30px 20px;
  }

  .oe_login_buttons {
    justify-content: stretch;
  }

  .oe_login_buttons button[type="submit"] {
    width: 100%;
  }
}
/* ============================
   MOBILE FIX – FORM WIDTH
============================ */

@media (max-width: 768px) {

  /* Force the signup form to use full available width */
  form.oe_signup_form {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  /* Now inputs can actually grow */
  form.oe_signup_form input,
  form.oe_signup_form .form-control {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Buttons full width */
  form.oe_signup_form .btn,
  form.oe_signup_form .btn-primary {
    width: 100% !important;
  }
}
/* ============================
   MOBILE FIX – FORM WIDTH
============================ */

@media (max-width: 968px) {

  .oe_login_form {
    max-width: 100% !important;   /* ← override the 50% */
    width: 100% !important;       /* ← allow full width */
    flex: 1 1 100% !important;    /* ← prevent flex shrink */
  }

}
