.container {
          flex: 1;
          min-width: 0;  
          display: flex;
          justify-content: center;
          align-items: center;
          padding: 2rem;
          box-sizing: border-box;
        }

        .card {
          background-color: #fff;
          padding: 2.5rem 2rem;
          border-radius: 6px;
          box-shadow: 0 10px 30px rgba(0,0,0,0.05);
          width: 100%;
          max-width: 550px;
        }

        .form-header {
          margin-bottom: 1rem;
          margin-top: -0.5rem;
        }

        .form-header h3 {
          margin: 0;
          font-size: 1.1rem;
          font-weight: 500;
          color: #333;
        }

        .form-header p {
          margin: 0.3rem 0 0;
          font-size: 0.85rem;
          color: #777;
        }

        .btn-google {
          background-color: #fff;
          border: 1px solid #ddd;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 10px;
          padding: 0.5rem;
          width: 100%;
          font-size: 0.75rem;
          border-radius: 4px;
          margin-bottom: 1.5rem;
          cursor: pointer;
          transition: background-color 0.3s ease;
          color: #000;
          text-decoration: none;
        }

        .btn-google:hover {
          background-color: #ffddb3;
        }

        .btn-google img {
          width: 20px;
          height: 20px;
        }



        .error-message {
          color: #e74c3c;
          font-size: 0.85rem;
          margin-top: 0.3rem;
          font-weight: 500;
        }


        .btn-login {
          padding: 0.6rem 2.4rem;
          font-size: 1rem;
          border-radius: 6px;
          background-color: #2e3346;
          color: #fff;
          border: none;
          cursor: pointer;
          display: inline-flex;
          align-items: center;
          gap: 0.6rem;
          min-width: 130px;
        }

        .btn-login[disabled] {
          opacity: 0.6;
          cursor: not-allowed;
        }

        .forgot-link {
          color: #000;
          font-size: 0.75rem;
          text-decoration: underline;
          align-self: center;
        }



        @media (max-width: 480px) {
          .card {
            padding: 2rem 1.5rem;
          }

          header h1 {
            font-size: 1.4rem;
          }

          .form-header h3 {
            font-size: 1.1rem;
          }

          .form-header p {
            font-size: 0.85rem;
          }

          .btn-google {
            flex-direction: row;
            justify-content: center;
            gap: 10px;
            font-size: 0.9rem;
            color: #000;
          }

          .btn-google img {
            width: 18px;
            height: 18px;
          }

          .input-wrapper input {
            font-size: 16px;  
            padding: 1rem 2rem 0.5rem 2rem;
          }

          .btn-login {
            width: 100%;
            justify-content: center;
            font-size: 0.75rem;
            padding: 0.7rem;
          }

          .actions-row {
            flex-direction: column;
            gap: 1rem;
            align-items: stretch;
          }

          .forgot-link {
            text-align: center;
          }
        }
.card {
  --card-pad-x: 2rem;  
  padding: 2.5rem var(--card-pad-x);
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .card {
    --card-pad-x: 1.5rem;
    padding: 2rem var(--card-pad-x);
  }
}

.divider {
  display: flex;
  align-items: center;
  width: calc(100% + (var(--card-pad-x) * 2));
  margin-left: calc(-1 * var(--card-pad-x));
  margin-right: calc(-1 * var(--card-pad-x));
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  background: #ccc;
  flex: 1 1 auto;
  min-width: 0;
}

.divider span {
  padding: 0 0.75rem;
  color: #777;
  font-size: 0.85rem;
  white-space: nowrap;
}

.login-container {
  margin-top: clamp(1rem, 5vh, 3rem);
}

@media (max-width: 1440px) {
  .login-container {
    margin-top: clamp(2.5rem, 6vh, 3.5rem);
  }
}

  .main .card.signup{
    max-width: 760px !important;    
    width: 100%;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  @media (max-width: 680px){
    .main .card.signup { max-width: 100% !important; padding: 1.25rem; }
    .form-grid { grid-template-columns: 1fr; }
  }

.remember-group { margin: 4px 0 12px; }

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--text-color, #333);
}

.remember-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.remember-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid #cbd0d9;
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s ease;
}

.remember-box .material-icons {
  font-size: 16px;
  color: #fff;
  opacity: 0;
  transition: opacity .15s ease;
}

.remember-check:hover .remember-box {
  border-color: #999;
}

.remember-check input:checked + .remember-box {
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.remember-check input:checked + .remember-box .material-icons {
  opacity: 1;
}

.remember-check input:focus-visible + .remember-box {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.alert .material-icons { font-size: 20px; flex-shrink: 0; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-success .material-icons { color: #10b981; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-error   .material-icons { color: #ef4444; }
.alert.hidden  { display: none; }

.workplace-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.workplace-list::-webkit-scrollbar { width: 6px; }
.workplace-list::-webkit-scrollbar-track { background: transparent; }
.workplace-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.workplace-list::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.workplace-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  width: 100%;
}
.workplace-option:hover {
  border-color: var(--primary, #1a1a1a);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.workplace-option > .material-icons:first-child {
  font-size: 28px;
  color: var(--primary, #1a1a1a);
  flex-shrink: 0;
}
.workplace-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.workplace-title { font-weight: 500; font-size: 15px; color: #1a1a1a; }
.workplace-sub   { font-size: 13px; color: #6b7280; }
.workplace-arrow { color: #9ca3af; font-size: 20px; }

.input-group .hint-message {
  display: block;
  margin-top: .35rem;
  font-size: .72rem;
  color: #9ca3af;
  line-height: 1.4;
  padding-left: 2rem;  
}
.input-group.error .hint-message { color: #e74c3c; }

@media (max-width: 768px) {
  .input-wrapper input,
  .input-wrapper select,
  .input-wrapper textarea,
  .iti input {
    font-size: max(16px, 1em) !important;
  }
}

@media (max-width: 480px) {
  .container { padding: 1.25rem 1rem; }
  .login-container { margin-top: 1.25rem; }
}

.register-hint {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}
.register-hint a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.register-hint a:hover { text-decoration: underline; }
