/* Global font settings */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background-color: #a5b2cd;
    color: #212529;/* default text color */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center
}

/* Links */
a {
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  color: inherit;
  transition: 0.5s ease;
}
a:hover {
  color: #2d314c;
  transition: 0.5s ease;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.company-name,
.sidebar-header,
.course-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #2d314c;
  margin: 0 0 15px 0;
  text-align: left;
}

/* Paragraphs and labels */
p, label, a, span, .form-control, .alert-danger {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* Wrapper for the whole login page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  max-width: 1000px;
  padding:0 80px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #ffffff;
}

/* Left side image */
.login-image {
  flex: 1;
  padding-left:0;
  padding-right:30px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right:1px solid #eee;
}

.login-image img {
  width: 500px;
  height: 500px;
  object-fit: cover;
}

/* Right side form */
.login-form {
  flex: 1;
  padding:0 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form h1,
.login-form h2,
.login-form h4 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  color: #2d314c;
}

/* Form inputs */
.login-form .form-control {
  width: 92%;
  margin-bottom: 20px;
}

/* Buttons */
.login-form .button {
  margin-top: 20px;
}

.login-form .btn-outline-custom {
  width: 100%;
  margin-top: 15px;
}

/* Password toggle icon */
.password-input-wrapper {
  position: relative;
}

.form-control {
  padding-right: 40px; /* Make room for the eye */
}

.password-toggle {
  position: absolute;
  bottom: 40%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
}

/* Responsive: stack image on top of form for small screens */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    height: auto;
    max-width: 95%;
  }

  .login-image {
    height: 200px;
  }

  .login-image img {
    border-radius: 12px 12px 0 0;
  }

  .login-form {
    padding: 30px 20px;
  }
}


/* Forms */
.form-control {
  width: 80%;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #6c757d;
  padding: 12px;
  font-size: 16px;
  color: #495057;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}


/* Buttons - global consistency */

.buttons-group {
  display:flex;
  justify-content:center;
  gap:20px;
}

.button,
.btn-outline-custom {
  font-family: 'Montserrat', sans-serif;
  padding: 12px;
  margin-top: 12px;         /* space between buttons */
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline;           /* ensures each is on its own line */
  box-sizing: border-box;   /* avoid overflow */
}

/* Primary button */
.button {
  background-color: #283B77;
  color: #fff;
  border: none;
  transition: 0.5s ease;
}
.button:hover {
  background-color: #52679e;
  transition: 0.5s ease;
}

/* Outline button */
.btn-outline-custom {
  border: 1px solid #2d314c;
  background-color: transparent;
  color: #000;
}
.btn-outline-custom:hover {
  background-color: #1e2e5c;
  color: #fff;
}

.btn-sign-up:hover {
  color:#fff;
}

.btn-login {
  width:100%;
}

.btn-sign-up {
  width:50%;
  border: 1px solid #62699f;
  background-color: transparent;
  color: #292929;
}

.btn-sign-up:hover {
  background-color: #a5b2cd;
  color: #fff;
}

/* Container for bottom links */
.login-form .extra-links {
  margin-top: 30px;
  text-align: center;
}

.login-form .extra-links p {
  margin-bottom: 10px;
}

/*!* Buttons *!*/
/*.button,*/
/*.btn-outline-custom {*/
/*  font-family: 'Montserrat', sans-serif;*/
/*  font-size: 16px;*/
/*  font-weight: 600;*/
/*  text-align: center;*/
/*  text-decoration: none;*/
/*  cursor: pointer;*/
/*  transition: all 0.3s ease;*/
/*}*/

/*!* Specific button styles *!*/
/*.button {*/
/*  width: 50%;*/
/*  padding: 15px 0;*/
/*  color: #fff;*/
/*  background-color: #7d83a5;*/
/*  border: none;*/
/*  border-radius: 8px;*/
/*  box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
/*  line-height: 20px;*/
/*}*/
/*.button:hover {*/
/*  background-color: #2d314c;*/
/*}*/
/*.btn-outline-custom {*/
/*  margin-top: 20px;*/
/*  border: 1px solid #2d314c;*/
/*  background-color: transparent;*/
/*  color: #000;*/
/*}*/
/*.btn-outline-custom:hover {*/
/*  background-color: #2d314c;*/
/*  color: #fff;*/
/*}*/


/* Company branding */
.company-name {
  font-size: 24px;
  font-weight: 700;
  margin-left: 30px;
  margin-top: 10px;
}

/* Utility */
.back-to-login {
  font-size: 14px;
  font-weight: 600;
  color: #2d314c;
  margin-top: 20px;
}
.back-to-login:hover {
  color: #000;
}

.button-links {
  margin-top:20px;
}

.forgot-password {
  font-weight:600;
  font-size:16px;
}

.forgot-password:hover {
  color: #a5b2cd;
}

/*** register page ***/

.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin:80px auto;
  max-width: 700px;
  padding:0 80px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

.register-form {
  width:700px;
  flex: 1;
  padding:50px 30px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.register-form .form-control {
  width: 100%;
  margin-bottom: 20px;
}

.password-toggle.register {
  bottom: 32%;
  right:50px;
}

.form-group.form-flex {
  display:flex;
  gap:20px;
}

.file-upload-requirements {
  margin-top:60px;
  font-size:14px;
}

.form-control-file {
  display:block;
}

.btn-register {
  width:40%;
  display: block;
  margin:40px auto 0 auto;
}

.back-to-login.register {
  position:relative;
  top:50px;
  margin-left:350px;
  font-size:16px;
}

.back-to-login.register:hover {
  color:#fff;
}
