* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f2f6fc;
  flex-direction: column;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.card {
  display: flex;
  width: 820px;          
  max-width: 95%;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.form-box {
  flex: 0.8;             
  max-width: 360px;       
  background: white;
  padding: 40px 30px;
  margin: 30px;           
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.form-box .title {
  color: #2563eb;
  font-size: 28px;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-box p {
  color: #666;
  margin-top: 0;
  margin-bottom: 18px; 
}

.role-switch {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 25px;
  overflow: hidden;
  margin: 0 auto 20px auto;
  width: fit-content;
}

.role-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}

.role-switch .active {
  background: #2794eb;
  color: white;
}

.role-switch button i {
  font-size: 14px;
  color: inherit;
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.label-icon {
  color: #aaa;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  padding: 10px 35px 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.password-group {
  position: relative;
}

.password-group .toggle-eye {
  position: absolute;
  right: 12px;
  top: 36px;
  font-size: 16px;
  cursor: pointer;
  color: #888;
  transition: color 0.3s ease;
}

.password-group .toggle-eye:hover {
  color: #2563eb;
}

.input-group input:focus {
  border-color: #2563eb;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
}

.options a {
  text-decoration: none;
  color: #2563eb;
}

.btn {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #1d4ed8;
}

.card {
  background: url("img/wave4.png") no-repeat center center;
  background-size: cover;
}

.logo-box img {
  max-width: 220px;  
  height: auto;
  margin-bottom: 4px; 
}

.form-box {
  background: #fff;
  position: relative;
  z-index: 1;  
}

.banner h2 {
  font-size: 26px;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.banner p {
  font-size: 16px;
  max-width: 300px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.footer {
  font-size: 12px;
  color: #555;
  text-align: center;
}

/* Animasi */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-animate {
  animation: fadeIn 0.4s ease;
}

.form-animate.zoom {
  animation: zoomIn 0.3s ease;
}

.form-animate.slideLeft {
  animation: slideLeft 0.4s ease;
}

.form-animate.slideRight {
  animation: slideRight 0.4s ease;
}

/* ========================= */
/* RESPONSIVE DESIGN */
/* ========================= */

/* Tablet */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
    width: 95%;
  }

  .form-box {
    margin: 20px;
    padding: 30px 20px;
  }

  .logo-box img {
    max-width: 180px;
    margin-bottom: 3px;
  }

  .form-box p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .banner {
    display: none; 
  }
}

/* Mobile */
@media (max-width: 480px) {
  .card {
    flex-direction: column;
    max-width: 360px;   
    width: 90%;        
    margin: 20px auto;  
    height: auto;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
  }

  .form-box {
    margin: 15px auto;
    padding: 25px 20px;
    width: 100%;
    min-height: 400px;
  }

  .logo-box img {
    max-width: 150px;
    margin-bottom: 4px;
  }

  .form-box p {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .btn {
    font-size: 14px;
    padding: 12px;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .banner {
    display: none !important;
  }
}
