/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1f69b7 0%, #2a5298 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-fluid {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Login Container */
.main-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

.login-all {
  display: flex;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  min-height: 500px;
}

/* Form Section - Left Side */
.form_login {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

#kc-form-wrapper {
  display: flex;
  width: 100%;
}

.form1 {
  width: 100%;
}

/* Input Groups with Material Design */
.group5 {
  position: relative;
  margin-bottom: 35px;
}

.input5 {
  font-size: 16px;
  padding: 10px 10px 10px 5px;
  display: block;
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  transition: border-color 0.3s;
}

.input5:focus {
  outline: none;
  border-bottom-color: #1f69b7;
}

/* Label Animation */
.label5 {
  color: #999;
  font-size: 16px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 10px;
  transition: 0.2s ease all;
}

.input5:focus ~ .label5,
.input5:valid ~ .label5 {
  top: -20px;
  font-size: 12px;
  color: #1f69b7;
}

/* Bar Animation */
.bar5 {
  position: relative;
  display: block;
  width: 100%;
}

.bar5:before,
.bar5:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 0px;
  position: absolute;
  background: #1f69b7;
  transition: 0.3s ease all;
}

.bar5:before {
  left: 50%;
}

.bar5:after {
  right: 50%;
}

.input5:focus ~ .bar5:before,
.input5:focus ~ .bar5:after {
  width: 50%;
}

/* Highlight */
.highlight5 {
  position: absolute;
  height: 60%;
  width: 100px;
  top: 25%;
  left: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* Login Button */
.buttonsearch {
  width: 100%;
  padding: 12px;
  background: #1f69b7;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 20px;
}

.buttonsearch:hover {
  background: #164a8a;
}

.buttonsearch span {
  display: block;
}

/* Image Section - Right Side */
.view {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-right {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.mask p {
  padding: 15px;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

/* Dropdown Language Selector */
.dropdown {
  position: absolute;
  bottom: 24px;
  width: 87%;
}

.dropdown-toggle {
  padding: 8px 12px;
  border: none;
  border-radius: 3px;
  background: #eaeaea;
  color: #1f69b7;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.dropdown-toggle:hover {
  background: #d4d4d4;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 3px;
  bottom: 100%;
  margin-bottom: 5px;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
}

.dropdown-menu li a img {
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.float-right {
  float: right;
  color: #1f69b7;
  margin-top: 5px;
  text-decoration: none;
  font-size: 13px;
}

.float-right:hover {
  text-decoration: underline;
}

/* Remember Me Checkbox */
#kc-form-options {
  margin: 15px 0;
}

.checkbox label {
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

/* Alert Messages */
.alert {
  padding: 15px;
  margin: 20px;
  border-radius: 5px;
  font-size: 14px;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-all {
    flex-direction: column;
    max-width: 400px;
  }

  .view {
    min-height: 200px;
  }

  .img-right {
    border-radius: 0 0 10px 10px;
  }

  .form_login {
    padding: 40px 30px;
  }

  .dropdown {
    width: 100%;
    position: relative;
    bottom: auto;
    margin-top: 20px;
  }
}

/* Caret for dropdown */
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}