/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: helvetica, verdana, arial, sans-serif, tahoma, geneva;
  font-size: 12px;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #FFF;
  background-size: cover;
  min-width: 0;              /* FIX: no hard min-width */
  min-height: 380px;
  overflow: auto;
}

.clear { clear: both; }

/* Container */
#contains { width: 100%; height: 100%; position: relative; }

.login {
  width: 100%;               /* responsive */
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  background: #FFF;
  border-radius: 4px;
  padding: 40px 30px 30px;
  box-shadow: 0 0 7px rgba(0,0,0,.3);
}

.login h1 {
  font-size: 40px;
  line-height: 56px;
  color: #333;
  text-align: center;
  font-weight: 400;
}

.login .line-seperator {
  height: 1px;
  margin: 30px 0;
  background: linear-gradient(to right, rgba(219,219,219,0.01) 0, #dbdbdb 7%, #dbdbdb 93%, rgba(219,219,219,0) 100%);
}

/* Form Inputs */
.frm_input {
  width: 100%;               /* responsive */
  max-width: 400px;
  margin: 20px auto 0;
}

.frm_input input[type=text],
.frm_input input[type=password] {
  width: 100%;
  height: 36px;
  padding: 0 0.75rem;
  font-size: 18px;
  color: #999;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  margin-top: 8px;
}

.frm_input input:focus {
  background-color: #f8fbff;
  border-color: #2b88f6;
  color: #000;
}

.frm_input input::placeholder { color: #c6deff; }

/* Password Toggle */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  padding-right: 3rem;       /* space for the eye */
}

.eye-button {
  all: unset;
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;            /* larger tap target */
  height: 2.25rem;
  z-index: 2;                /* keep above input content */
}

.eye-icon { font-size: 1.2rem; line-height: 1; }

/* Submit Button */
#login_submit {
  display: block;
  width: 100%;
  height: 50px;
  margin: 20px 0 0;
  font-size: 18px;
  color: #fff;
  background: #109b00;
  border: 1px solid #063d00;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  text-shadow: 0 1px 0 #000;
  cursor: pointer;
}
#login_submit:hover { background-color: #19a707; }
#login_submit:active { background-color: #0e8800; }

/* Notifications */
.notification-box {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,180,50,0.8);
  color: #fff;
  padding: 8px 4px;
  border-radius: 4px;
  box-shadow: 0 0 7px rgba(0,0,0,.3);
  display: none;
  min-width: 0;              /* FIX: no hard min-width */
  width: calc(100% - 2rem);  /* responsive width */
  z-index: 10;
  text-align: center;
}
.notification-box-error { background: rgba(255,0,0,0.8); }
.notification-box-show { display: block; }

/* Mobile fine-tuning */
@media (max-width: 560px) {
  .login { padding: 24px 16px 20px; }
  .frm_input input[type=text],
  .frm_input input[type=password] {
    height: 44px;            /* comfortable tap on iOS/Android */
    font-size: 16px;         /* avoids iOS zoom */
  }
  .eye-button { right: 0.5rem; }
}

/**/
/* === HOTFIX για το ματάκι μέσα στο input === */
.frm_input .password-wrapper { position: relative; width: 100%; }
.frm_input .password-wrapper input { padding-right: 3rem; }

/* Υπερ-στοχευμένο override (νικά .frm_input button {...}) */
.frm_input .password-wrapper .eye-button {
  all: unset;
  position: absolute !important;
  top: 50% !important;
  right: 0.75rem !important;
  transform: translateY(-50%) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 2.25rem !important;
  height: 2.25rem !important;
  line-height: 1 !important;
  cursor: pointer !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: inherit !important;

  z-index: 3 !important;
}

.frm_input .password-wrapper .eye-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* Προαιρετικό για πολύ μικρές οθόνες */
@media (max-width: 560px) {
  .frm_input .password-wrapper .eye-button { right: 0.5rem !important; }
}

