/* Reset and base container styling for proper layout */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

/* Main container with proper split */
.oe_website_login_container {
  display: flex;
  min-height: calc(100vh - 200px); /* adjust if you have header/footer */
  background: #ffffff;
  width: 100%;
  margin: 0;
  position: relative;
}

/* Right side - Decorative background taking part of the width */
.oe_website_login_container::after {
  content: "";
  flex: 0 0 40%; /* adjust width: smaller % = narrower image */
  min-height: 100%; /* fills container height */
  background: #f5f5f0 url("/Origami/static/images/Frame.png") center / cover no-repeat;
}

/* Left side - Form container taking 2/3 of screen */
.oe_signup_form {
  flex: 0 0 66.666%;
  max-width: 50% !important;
  width: 60%;
  padding: 0 80px 0 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}



/* 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;
}

/* H1 title above the signup form */
.oe_website_login_container > h1 {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 40px; /* space between h1 and form */
    z-index: 10;
}



/* Reorder form elements using flexbox order */
.mb-3.field-login {
  order: 4;
  width: 100%;
}

.mb-3.field-password {
  order: 5;
  width: 100%;
}

.mb-3.field-confirm_password {
  order: 6;
  width: 100%;
}

.form-group:has(#nom) {
  order: 2;
}

.form-group:has(#prenom) {
  order: 3;
}

.text-center.oe_login_buttons {
  order: 10;
  width: 100%;
}

/* Move social auth to the top */
.text-center.oe_login_buttons .o_login_auth {
  order: -10;
  margin-bottom: 30px;
  width: 100%;
}

/* Hide the "or" separator text */
.o_login_auth em {
  display: none !important;
}

/* Social login buttons styling with full width */
.o_auth_oauth_providers {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.o_auth_oauth_providers .list-group-item {
  border: 1px solid #d0d0d0 !important;
  border-radius: 4px !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  color: #333333 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  background: #ffffff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.o_auth_oauth_providers .list-group-item:hover {
  background: #f8f8f8 !important;
  border-color: #b0b0b0 !important;
  text-decoration: none !important;
}

.o_auth_oauth_providers .list-group-item i {
  font-size: 20px;
}

/* Name fields side by side with proper spacing and full width */
.form-group:has(#nom),
.form-group:has(#prenom) {
  width: 100%;
  display: inline-block;
  vertical-align: top;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.form-group:has(#nom) {
  margin-right: 16px;
}

/* Form labels styling */
.oe_signup_form label {
  display: block;
  font-size: 14px;
  color: #000000;
  margin-bottom: 8px;
  font-weight: 400;
}

/* Form inputs with full width and proper sizing */
.oe_signup_form input[type="text"],
.oe_signup_form input[type="password"],
.oe_signup_form input[type="email"],
.oe_signup_form .form-control {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  color: #333333 !important;
  background: #ffffff !important;
  transition: border-color 0.2s ease;
  box-sizing: border-box !important;
  display: block !important;
}

.oe_signup_form input[type="text"]:focus,
.oe_signup_form input[type="password"]:focus,
.oe_signup_form input[type="email"]:focus,
.oe_signup_form .form-control:focus {
  outline: none !important;
  border-color: #e60012 !important;
}

/* Field spacing with full width */
.mb-3 {
  margin-bottom: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* Password validation text */
.mb-3.field-password::after {
  content: "8 characters - 1 capital letter - 1 symbol - no repetitive letters";
  display: block;
  font-size: 12px;
  color: #e60012;
  margin-top: 8px;
  line-height: 1.4;
}

/* Submit button and login link container */
.text-center.oe_login_buttons {
  text-align: left !important;
  display: flex !important;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  width: 100%;
}

/* Submit button styling - right aligned */
.oe_login_buttons .btn-primary {
  width: auto !important;
  padding: 14px 50px !important;
  background: #e60012 !important;
  border: none !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 0.2s ease;
  align-self: flex-end;
  order: 2;
  margin: 0 !important;
}

.oe_login_buttons .btn-primary:hover {
  background: #c00010 !important;
}

/* Already have account link */
.oe_login_buttons .btn-link {
  display: inline-block !important;
  text-align: left !important;
  font-size: 12px !important;
  color: red !important;
  text-decoration: none !important;
  align-self: flex-start;
  order: 1;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

.oe_login_buttons .btn-link:hover {
  text-decoration: underline !important;
}

/* Hide empty o_login_auth divs */
.mb-3.text-center .o_login_auth {
  display: none !important;
}

/* Responsive design */
@media (max-width: 968px) {
  .oe_website_login_container {
    flex-direction: column;
  }

  /* Image on top of form, full width, cropped if needed */
  .oe_website_login_container::after {
    display: block;
    flex: 0 0 auto;
    width: 100%;            
    height: 200px;          /* adjust as needed */
    order: -1;              /* puts it above the form */
    background: #f5f5f0 url("/Origami/static/images/Frame.png") center/cover no-repeat;
  }

  .oe_signup_form {
    flex: 1;
    max-width: 100%;
    width: 100%;
    padding: 40px 30px;
  }
}

@media (max-width: 576px) {
  .form-group:has(#nom),
  .form-group:has(#prenom) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
  }

  .oe_signup_form {
    padding: 30px 20px;
  }

  .oe_login_buttons .btn-primary {
    width: 100% !important;
  }
}
/* ============================
   MOBILE FIX – FORM WIDTH
============================ */

@media (max-width: 968px) {

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

}
