:root {
  --cream-bg: #f5eac8;
  --card-bg: #faf9f0;
  --card-border: #d9d9d9;
  --primary-blue: #1f5cc4;
  --text-subtle: #6b7a91;
  --placeholder: #d5d5d5;
  --white: #faf9ee;
  --label-color: #1f5cc4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #f5eac8 0%, #e8d4a0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

/* ===== SPLIT LAYOUT ===== */
.big-card {
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 500px;
  background: var(--white);
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.6s ease-out;
  transition: 0.3s ease;
}
.big-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== LEFT BOX ===== */
.left-box {
  flex: 1;
  background: linear-gradient(135deg, #f5eac8 0%, #e8d4a0 100%);
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   
  gap: 40px;                     
  position: relative;
  border-radius: 35px;
  margin-right: 15px;
}


.logo-text {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 0;
  margin-bottom: 40px;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.logo-brand {
  font-size: 24px;             
  font-weight: 700;           
  color: #1f5cc4;              
  letter-spacing: 0.5px;       
  margin-top: 5px;             
  font-family: "Poppins", sans-serif;
}

.welcome-title {
  color: var(--primary-blue);
  font-size: 30px;
  margin-bottom: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.welcome-text {
  font-size: 16px;
  color: var(--text-subtle);
  line-height: 1.6;
  max-width: 400px;
}

.brand {
  color: var(--primary-blue);
  font-weight: 700;
}

.footer-left {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: auto;
}

/* ===== RIGHT BOX ===== */
.right-box {
  flex: 1;
  background: var(--white);
  padding: 5px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-radius: 35px;
  margin-left: 15px;
}

.right-box::before {
  display: none;
}

.form-title {
  color: var(--primary-blue);
  font-size: 38px;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-subtitle {
  color: var(--text-subtle);
  font-size: 14px;
  margin-bottom: 32px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
  text-align: left;
}

.form-group input {
  width: 100%;
  padding: 16px 14px 8px 14px;
  border-radius: 12px;
  border: 2px solid var(--card-border);
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--white);
  font-family: inherit;
}

.form-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--label-color);
  font-size: 15px;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  padding: 0 4px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: var(--primary-blue);
  font-weight: 500;
  background-color: var(--card-bg);
}

.form-group input:hover {
  border-color: var(--primary-blue);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(31, 92, 196, 0.15);
}

.form-group input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(31, 92, 196, 0.1);
  outline: none;
  transform: scale(1.02);
}

.password-group {
  position: relative;
}

.toggle-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-subtle);
  opacity: 0;
}

.toggle-icon.visible {
  display: flex;
  opacity: 1;
}

.toggle-icon:hover {
  color: var(--primary-blue);
  transform: translateY(-50%) scale(1.2);
}

.toggle-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Button */
button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1548a0 100%);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(31, 92, 196, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 92, 196, 0.4);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer link */
.footer-text {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-subtle);
  text-align: center;
}

.footer-text a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: #1548a0;
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

/* TABLET (600px - 1024px) */
@media (min-width: 600px) and (max-width: 1024px) {
  body {
    padding: 0;
    align-items: flex-start;
  }

  .page-wrapper {
    padding: 0;
    min-height: 100vh;
  }

  .big-card {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .big-card:hover {
    transform: none;
    box-shadow: none;
  }

  .left-box {
    padding: 40px 40px 60px;
    min-height: auto;
    justify-content: flex-start;
    border-radius: 0 0 40px 40px;
    margin-right: 0;
  }

  .logo-text {
    margin-bottom: 60px;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .welcome-title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .welcome-text {
    font-size: 15px;
    max-width: 100%;
    line-height: 1.6;
  }

  .footer-left {
    display: none;
  }

  .right-box {
    padding: 40px 40px 50px;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    margin-left: 0;
    z-index: 2;
    align-items: center;
  }

  .right-box::before {
    display: none;
  }

  .form-title {
    font-size: 32px;
    margin-bottom: 8px;
    text-align: center;
  }

  .form-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
    text-align: center;
  }

  .right-box form {
    width: 100%;
    max-width: 400px;
  }

  .form-group {
    margin-bottom: 22px;
  }

  .form-group input {
    padding: 15px 16px 7px 16px;
    font-size: 15px;
    border-radius: 14px;
  }

  .form-group label {
    font-size: 15px;
    left: 16px;
  }

  button {
    font-size: 15px;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
  }

  .footer-text {
    font-size: 13px;
    margin-top: 20px;
  }

  .right-box::after {
    content: "© 2025 Skillrad — Learn. Improve. Achieve.";
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--text-subtle);
    margin-top: 30px;
    padding-top: 20px;
  }
}

/* MOBILE (hingga 599px) */
@media (max-width: 599px) {
  body {
    padding: 0;
    min-height: 100vh;
    align-items: flex-start;
  }

  .page-wrapper {
    padding: 0;
    align-items: flex-start;
    min-height: 100vh;
  }

  .big-card {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .big-card:hover {
    transform: none;
    box-shadow: none;
  }

  .left-box {
    padding: 30px 25px 50px;
    min-height: auto;
    text-align: left;
    justify-content: flex-start;
    border-radius: 0 0 35px 35px;
    margin-right: 0;
  }

  .logo-text {
    justify-content: flex-start;
    margin-bottom: 50px;
  }

  .logo {
    width: 70px;
    height: 70px;
  }

  .welcome-title {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: left;
  }

  .welcome-text {
    font-size: 14px;
    max-width: 100%;
    line-height: 1.6;
    text-align: left;
  }

  .footer-left {
    display: none;
  }

  .right-box {
    padding: 35px 25px 40px;
    border-radius: 35px 35px 0 0;
    margin-top: -35px;
    margin-left: 0;
    z-index: 2;
    align-items: center;
  }

  .right-box::before {
    display: none;
  }

  .form-title {
    font-size: 28px;
    margin-bottom: 6px;
    text-align: center;
  }

  .form-subtitle {
    font-size: 13px;
    margin-bottom: 28px;
    text-align: center;
  }

  .right-box form {
    width: 100%;
    max-width: 350px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group input {
    padding: 14px 14px 7px 14px;
    font-size: 14px;
    border-radius: 12px;
  }

  .form-group label {
    font-size: 14px;
    left: 14px;
  }

  .form-group input:focus + label,
  .form-group input:not(:placeholder-shown) + label {
    font-size: 11px;
  }

  .form-group input:hover,
  .form-group input:focus {
    transform: none;
  }

  .toggle-icon {
    right: 14px;
    width: 22px;
    height: 22px;
  }

  .toggle-icon svg {
    width: 20px;
    height: 20px;
  }

  button {
    font-size: 14px;
    padding: 14px;
    border-radius: 11px;
    margin-top: 10px;
  }

  button:hover {
    transform: none;
  }

  button:active {
    transform: scale(0.98);
  }

  .footer-text {
    font-size: 12px;
    margin-top: 18px;
  }
  .right-box::after {
    content: "© 2025 Skillrad — Learn. Improve. Achieve.";
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 25px;
    padding-top: 15px;
  }
}

/* MOBILE(hingga 360px) */
@media (max-width: 360px) {
  .page-wrapper {
    padding: 8px;
  }

  .big-card {
    border-radius: 16px;
  }

  .left-box {
    padding: 25px 20px;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  .welcome-title {
    font-size: 24px;
  }

  .welcome-text {
    font-size: 12px;
  }

  .right-box {
    padding: 25px 20px 30px;
  }

  .form-title {
    font-size: 24px;
  }

  .form-subtitle {
    font-size: 11px;
  }

  .form-group input {
    font-size: 13px;
    padding: 12px 10px 6px 10px;
  }

  .form-group label {
    font-size: 12px;
    left: 10px;
  }

  button {
    font-size: 13px;
    padding: 12px;
  }

  .footer-text {
    font-size: 11px;
  }
}

/* LANDSCAPE MOBILE (hingga 896px tinggi dan max 600px lebar) */
@media (max-height: 896px) and (max-width: 600px) and (orientation: landscape) {
  body {
    padding: 10px;
  }

  .big-card {
    flex-direction: row;
    max-width: 100%;
    min-height: auto;
  }

  .left-box {
    flex: 0.8;
    padding: 25px 20px;
  }

  .logo {
    width: 45px;
    height: 45px;
  }

  .logo-text {
    margin-bottom: 15px;
  }

  .welcome-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .welcome-text {
    font-size: 11px;
    line-height: 1.4;
  }

  .footer-left {
    font-size: 10px;
    margin-top: 15px;
  }

  .right-box {
    flex: 1.2;
    padding: 25px 30px;
  }

  .right-box::before {
    display: block;
    left: -20px;
    width: 40px;
  }

  .form-title {
    font-size: 22px;
  }

  .form-subtitle {
    font-size: 11px;
    margin-bottom: 18px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group input {
    padding: 11px 10px 5px 10px;
    font-size: 13px;
  }

  button {
    padding: 11px;
    font-size: 13px;
  }

  .footer-text {
    margin-top: 12px;
    font-size: 11px;
  }
}