/* assets/css/style.css */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #eae5cf;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-container {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 850px;
  background: #023425;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.card-left {
  flex: 1;
  background-color: #3b4a3f;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card-left img {
  max-width: 100%;
  height: auto;
}

.card-right {
  flex: 1;
  padding: 40px 30px;
  color: white;
}

.card-right h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: white;
  font-weight: 700;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: rgb(181, 177, 177);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #3b4a3f;
  font-size: 14px;
  box-sizing: border-box;
}

.btn-submit {
  background-color: #954130;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 15px;
  width: 100%;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #6b3226; /* lebih gelap */
}

.auth-link {
  color: #3a5284;
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

.auth-link a {
  color: #0f5132;
  text-decoration: none;
  font-weight: 600;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
}
.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}
.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

/* Style untuk tabel */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  color: white;
}
.admin-table th,
.admin-table td {
  border: 1px solid #d6e0f5; 
  padding: 12px;
  text-align: left;
}
.admin-table thead {
  background-color: #0f5132; 
  color: white; 
}
.admin-table tbody tr:nth-child(even) {
  background-color: #3b4a3f;
}
.admin-table a {
  color: #023425; 
  font-weight: 600;
}

/* ==== MOBILE MODE ==== */
@media (max-width: 768px) {
  .main-container {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .card {
    flex-direction: column !important;
    width: 90%;
    max-width: 400px;
    border-radius: 14px;
    background-color: #023425; /* samakan dengan desktop untuk tetap harmonis */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }

  .card-left {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center */
    background-color: #3b4a3f;
    padding: 15px;
    min-height: 200px; /* pastikan tinggi minimum supaya vertikal center terlihat */
    box-sizing: border-box;
  }

  .card-left img {
    width: 75%;
    max-width: 400px;
    height: auto;
    border-radius: 14px;
    display: block;
    object-fit: cover;
    margin: 0 auto; /* memastikan horizontal center */
  }

  .card-right {
    width: 100%;
    padding: 25px 18px;
    box-sizing: border-box;
  }

  .card-right h2 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
  }

  .form-group input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 15px;
    border: 1px solid #3b4a3f;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
  }
  .btn-submit {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
  }

  .auth-link {
    text-align: center;
    margin-top: 15px;
  }

  /* Alert tetap proporsional */
  .alert {
    font-size: 14px;
    padding: 12px;
    border-radius: 10px;
  }
}
