/* reset-style.css */

:root {
    --color-background: #0a1628;
    --color-surface: #132238;
    --color-text-light: #ffffff;
    --color-text-secondary: #8b9fc4;
    --color-accent: #2699fb;
    --color-accent-dark: #1a7fd8;
    --color-error: #ff4d4f;
    --color-success: #52c41a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-text-light); 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  user-select: none;
}

/* === LOADING OVERLAY === */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  justify-content: center; 
  align-items: center; 
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.lds-spinner {
  color: var(--color-accent);
  display: inline-block;
  position: relative;
  width: 80px; height: 80px;
}
.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3.2px; left: 36.8px;
  width: 6.4px; height: 17.6px;
  border-radius: 20%;
  background: var(--color-accent);
}
@keyframes lds-spinner {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* === MODAL STYLES (FIXED) === */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Overlay gelap */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: #132238;
    background: linear-gradient(135deg, #132238 0%, #1a2f4a 100%);
    color: var(--color-text-light); 
    padding: 40px 30px;
    border-radius: 24px; /* Sudut membulat modern */
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content.show {
    transform: scale(1);
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-error-title { color: var(--color-error); }
.modal-success-title { color: var(--color-success); }

.modal-content p {
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #e0e6ed;
}

.modal-content .modal-close-btn {
    background-color: var(--color-accent); 
    color: #ffffff; 
    border: none;
    padding: 14px 45px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(38, 153, 251, 0.3);
}

.modal-content .modal-close-btn:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 153, 251, 0.4);
}

/* === MAIN LAYOUT === */
.login-container {
  display: none; 
  justify-content: center;
  align-items: center; 
  flex-grow: 1; 
  padding: 40px 20px;
}

.login-box {
  max-width: 420px;
  width: 100%;
}

.logo-img {
  display: block;
  max-width: 120px;
  margin: 0 auto 35px;
}

.reset-subtitle {
  color: var(--color-text-light); 
  font-size: 1.5rem; 
  margin-bottom: 15px;
  text-align: center;
}

.reset-description {
  margin-bottom: 30px; 
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2); 
  border-radius: 10px; 
  background: rgba(255, 255, 255, 0.1); 
  color: var(--color-text-light); 
  font-size: 1rem;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: var(--color-accent);
  outline: none;
  background: rgba(255, 255, 255, 0.15);
}

.btn-login {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%); 
  color: #ffffff; 
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: 0.3s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(38, 153, 251, 0.4);
}

.register-link {
    margin-top: 30px;
    text-align: center;
    color: var(--color-text-secondary);
}

.register-link a {
    color: var(--color-accent); 
    text-decoration: none;
    font-weight: 600;
}

footer {
  padding: 25px;
  text-align: center;
  color: var(--color-text-secondary);
}