/*
* PHP Attendance Management System
* Email: heyalexluna@gmail.com
* Version: 1.1
* Author: Alexis Luna
* Copyright 2019 Alexis Luna
* Website: https://github.com/mralexisluna/php-attendance-management-system
*/

html,
body {
  min-height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef4f1;
  color: #142520;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.vertical-align-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  display: table;
}

.vertical-align-middle {
  display: table-cell;
  vertical-align: middle;
}

.auth-box {
  -moz-box-shadow: 1px 2px 10px 0 rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 1px 2px 10px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 1px 2px 10px 0 rgba(0, 0, 0, 0.1);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  width: 480px;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  background-color: #57648c;
  color: #fff;
}

.auth-box .content {
  display: inline-block;
  vertical-align: middle;
  *vertical-align: auto;
  *zoom: 1;
  *display: inline;
  width: 99%;
  padding: 30px;
  vertical-align: middle;
}

.auth-box .form-auth-small .btn {
  margin-top: 20px;
}

.auth-box .form-auth-small .element-left {
  float: left;
}

.auth-box .form-auth-small .element-right {
  float: right;
}

.auth-box .form-auth-small .bottom {
  margin-top: 20px;
  text-align: center;
}

.auth-box .lead {
  margin: 10px 0;
  font-size: 18px;
  text-align: center;
}

.auth-box .helper-text {
  font-size: 13px;
  color: #eeeeee;
}

.auth-box .helper-text a {
  color: #b3e5fc;
}

.auth-box .btn-signin-social {
  display: block;
  margin-bottom: 15px;
  padding: 10px 22px;
  width: 100%;
  background-color: #fff;
  border-color: #e4ecf0;
}

.auth-box .btn-signin-social:hover,
.auth-box .btn-signin-social:focus {
  background-color: #fafafa;
}

.auth-box .btn-signin-social i {
  font-size: 16px;
  margin: 5px;
}

.auth-box.lockscreen {
  width: 50%;
  padding: 40px 60px;
}

.auth-box.lockscreen .logo {
  margin-bottom: 30px;
}

.auth-box.lockscreen .user {
  margin-bottom: 30px;
}

.auth-box.lockscreen .user .name {
  font-size: 18px;
  margin-top: 10px;
}

.logo.align-center {
  text-align: center;
}

.logo img {
  max-width: 270px !important;
}

.color-white {
  color: #fff !important;
}

.help-block {
  display: block;
  margin: 7px 0 0;
  color: #c33535;
  font-weight: 600;
  font-size: 12px;
}

.has-error .help-block {
  color: #fff;
}

/* =====================
   Base Layout + Wrapper
   ===================== */
.login-wrapper {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  min-height: 100vh;
  overflow: hidden;
}

/* =========================
   Left Side (Form Section)
   ========================= */
.login-left {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 0 0, rgba(45, 191, 142, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  padding: 56px 48px;
}

.login-panel {
  width: min(100%, 430px);
  min-width: 0;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}

.login-logo {
  width: 250px;
  height: 60px;
}

.brand-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #12b981, #1277d8);
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 18px 40px rgba(18, 119, 216, 0.22);
}

.brand-name {
  color: #102a24;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.brand-caption {
  margin-top: 6px;
  color: #6c7f78;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  font-size: 30px;
  margin: 0;
}

/* Sign in Title + Subtitle */
.login-title {
  color: #102a24;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.login-subtitle {
  max-width: 360px;
  color: #61736e;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 30px;
}

/* The form itself */
.login-form {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
}

/* Form groups and inputs */
.form-group {
  margin: 0 0 18px;
  min-width: 0;
}

.form-group label {
  color: #243d36;
  font-size: 13px;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  max-width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d9e4df;
  border-radius: 8px;
  background: #ffffff;
  color: #13251f;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-group input:focus {
  border-color: #12a575;
  box-shadow: 0 0 0 4px rgba(18, 185, 129, 0.14);
}

.form-group input::placeholder {
  color: #9aaba5;
}

/* Error messages */
.error {
  color: red;
  font-size: 0.9em;
}

/* Button group for '로그인' / '회원가입' */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0 0;
}

.ui.button.btn-login {
  background: linear-gradient(135deg, #0f9f72, #126fd2);
  color: #ffffff;
  min-height: 52px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(18, 119, 216, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ui.button.btn-login:hover,
.ui.button.btn-login:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(18, 119, 216, 0.3);
}

.ui.button.btn-signup {
  background: #ffffff;
  color: #126158;
  text-align: center;
  min-height: 52px;
  border: 1px solid #c9ddd6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(33, 64, 55, 0.08);
}

.ui.button.btn-signup:hover,
.ui.button.btn-signup:focus {
  background: #f3faf7;
  color: #0f6c61;
}

/* ===========================
   Right Side (Image Section)
   =========================== */
.login-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 23, 39, 0.12), rgba(7, 23, 39, 0.66)),
    radial-gradient(circle at 28% 24%, rgba(29, 216, 166, 0.58), transparent 28%),
    radial-gradient(circle at 72% 34%, rgba(21, 111, 216, 0.58), transparent 30%),
    linear-gradient(135deg, #052520 0%, #064b54 47%, #0b3170 100%);
  padding: 64px;
  isolation: isolate;
}

.login-right::before {
  position: absolute;
  inset: 34px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  content: "";
}

.login-right::after {
  position: absolute;
  inset: auto -10% -20% 12%;
  z-index: -1;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
  content: "";
  transform: rotate(-8deg);
}

.hero-content {
  width: min(100%, 590px);
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 22px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #c9fff0;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h2 {
  margin: 0;
  color: #ffffff;
  font-size: 82px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 450px;
  margin: 20px 0 34px;
  color: rgba(244, 255, 251, 0.86);
  font-size: 18px;
  line-height: 1.65;
}

.login-illustration {
  display: block;
  max-width: 560px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 62px rgba(0, 10, 22, 0.36));
}

.language-wrapper {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1000;
}

.language-wrapper-mobile {
  display: none;
}

.language-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 37, 32, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #142520;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.language-button i.icon {
  height: auto;
  margin: 0;
  font-size: 18px;
}

.language-button-hero {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 150px;
  overflow: hidden;
  border: 1px solid #dce6e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(10, 29, 23, 0.16);
}

.language-dropdown a {
  display: block;
  padding: 10px 13px;
  color: #293d37;
  font-size: 13px;
  font-weight: 700;
}

.language-dropdown a:hover,
.language-dropdown a.active {
  background: #edf8f4;
  color: #0f8065;
}

@media screen and (min-width: 1440px) {
  .auth-box.lockscreen {
    width: 35%;
  }
}

@media screen and (max-width: 1279px) {
  .auth-box {
    width: 90%;
  }
}

@media screen and (max-width: 992px) {
  .auth-box {
    width: 70%;
  }

  .login-wrapper {
    grid-template-columns: minmax(360px, 0.95fr) minmax(430px, 1.05fr);
  }

  .login-left,
  .login-right {
    padding: 42px 34px;
  }

  .hero-content h2 {
    font-size: 64px;
  }

  .auth-box.lockscreen {
    width: 50%;
    padding: 40px 20px;
  }
}

@media screen and (max-width: 767px) {
  .ui.form .fields {
    margin: 0 -0.5em 1em;
  }
}

@media screen and (max-width: 640px) {
  .auth-box {
    width: 90%;
  }

  .auth-box .content {
    width: 95%;
  }

  .auth-box.lockscreen {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .login-right {
    display: none;
  }

  .login-wrapper {
    display: block;
    min-height: 100vh;
  }

  .login-left {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    align-items: flex-start;
    padding: 72px 24px 32px;
  }

  .login-panel {
    width: calc(100vw - 80px);
    max-width: 280px;
  }

  .logo-brand {
    margin-bottom: 34px;
  }

  .login-title {
    font-size: 34px;
  }

  .login-subtitle {
    font-size: 15px;
  }

  .language-wrapper-mobile {
    display: block;
  }

  .language-wrapper-desktop {
    display: none;
  }

  .ui.button.btn-login,
  .ui.button.btn-signup {
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .login-left {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-name {
    font-size: 26px;
  }

  .login-title {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .login-panel {
    width: calc(100vw - 80px);
    max-width: 310px;
  }
}
