:root {
  --primary-color: #3ecde0;
  --bg-dark: #111;
  --input-bg: #232424;
  --text-gray: #aaa;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: white;
  overflow-x: hidden;
}

.background {
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: row-reverse;
}

/* --- KONTENA BORANG (KIRI) --- */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  z-index: 10;
}

.logo {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: url("../images/v561_937.png") center/contain no-repeat;
}

.h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.h3 {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

/* Borang Tanpa Hardcode Width */
.form {
  width: 100%;
  max-width: 400px; /* Had lebar maksimum sahaja */
}

.font1 {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #bbb;
}

.inputbox1 {
  width: 100%; /* Mengikut lebar .form */
  padding: 0.8rem 1rem;
  height: 50px;
  background: var(--input-bg);
  border: 1px solid #333;
  border-radius: var(--radius);
  color: white;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.inputbox1:focus {
  outline: none;
  border-color: var(--primary-color);
}

.button {
  width: 100%;
  height: 50px;
  background: var(--primary-color);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.button:active {
  transform: scale(0.98);
}

.back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

/* --- BAHAGIAN IMEJ (KANAN) --- */
.oceanback {
  flex: 1;
  padding: 1.5rem;
  display: flex;
}

.oceanimg {
  flex: 1;
  background: url("../images/v790_237.png") center/cover no-repeat;
  border-radius: 2rem;
  position: relative;
}

.weather-info {
  position: absolute;
  top: 2rem;
  right: 2rem;
  text-align: right;
}

.number {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
  .oceanback {
    display: none; /* Sorok imej pada mobile */
  }
  .container {
    align-items: center;
    text-align: center;
  }
}


/* From Uiverse.io by gharsh11032000 */ 
.form-container {
    max-width: 400px;
    background-color: #111;
    /*padding: 32px 24px;*/
    font-size: 14px;
    font-family: inherit;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.084), 0px 2px 3px rgba(0, 0, 0, 0.168);
}

.form-container button:active {
  scale: 0.95;
}

.form-container .logo-container {
  text-align: center;
  font-weight: 600;
  font-size: 18px;
}

.form-container .form {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.form-container .form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-container .form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-container .form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: inherit;
  border: 1px solid #ccc;
}

.form-container .form-group input::placeholder {
  opacity: 0.5;
}

.form-container .form-group input:focus {
  outline: none;
  border-color: #1778f2;
}

.form-container .form-submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: inherit;
  color: #111;
  background-color: #3ecde0;
  border: none;
  width: 100%;
  padding: 12px 16px;
  font-size: inherit;
  gap: 8px;
  margin: 12px 0;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.084), 0px 2px 3px rgba(0, 0, 0, 0.168);
}

.form-container .form-submit-btn:hover {
  background-color: #3ecde0;
}

.form-container .link {
  color: #3ecde0;
  text-decoration: none;
}

.form-container .signup-link {
  align-self: center;
  font-weight: 500;
}

.form-container .signup-link .link {
  font-weight: 400;
}

.form-container .link:hover {
  text-decoration: underline;
}

