@import url('index.css?v=3.4');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');
/* Style khusus register.html jika diperlukan, misal override atau tambahan */

/* Style khusus register.html jika diperlukan, misal override atau tambahan */
.dark-toggle {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 10;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px #0001;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.dark-toggle.active {
    background: #222;
    color: #fff;
}
.dark-toggle i {
    font-size: 1.2em;
}

.container.modern-login {
    max-width: 90vw;
    width: 100%;
    margin: 12px auto 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px #0002;
    padding: 36px 28px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-width 0.3s, padding 0.3s, margin 0.3s;
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 600px) {
    .container.modern-login {
        max-width: 500px;
        padding: 48px 40px 40px 40px;
    }
}
.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0001;
    object-fit: contain;
    animation: logoSwing 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.login-logo:hover {
    transform: scale(1.08) rotate(-4deg);
}
.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0048ff;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #0001;
}
.login-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0048ff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.form-group {
    width: 100%;
    margin-bottom: 6px;
}
.form-label {
    font-size: 1rem;
    color: #0048ff;
    font-weight: 500;
    margin-bottom: 1px;
    display: block;
}
.input-wrapper {
    position: relative;
}
.form-input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
    font-size: 1rem;
    background: #f8fff8;
    color: #222;
    outline: none;
    transition: border 0.2s, box-shadow 0.3s, background 0.2s;
    box-sizing: border-box;
    box-shadow: inset 0 2px 8px 0 rgba(0,72,255,0.10);
}
.form-input:focus {
    border: 1.5px solid #0048ff;
    background: #fff;
    box-shadow: inset 0 4px 16px 0 rgba(0,72,255,0.18);
}
.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #0048ff;
    font-size: 1.1em;
}
.input-error {
    color: #e74c3c;
    font-size: 0.92em;
    margin-top: 1px;
    min-height: 18px;
}
.login-btn.modern-btn {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(90deg, #0048ff 60%, #0066ff 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,72,255,0.2);
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.login-btn.modern-btn:hover {
    background: linear-gradient(90deg, #0048ff 40%, #0066ff 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px 0 rgba(0,72,255,0.13);
}
.signup-link {
    background: #fff;
    box-shadow: 0 2px 8px #0001;
    border-radius: 12px;
    padding: 12px 0 10px 0;
    margin: 4px auto 0 auto;
    max-width: 370px;
    text-align: center;
    color: #0048ff;
    font-size: 0.98em;
    display: block;
    text-decoration: none;
    margin-bottom: 0;
}
.login-bg {
    background: #f7faff;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 24px;
}
@media (max-width: 480px) {
    .container.modern-login {
        max-width: 98vw;
        padding: 18px 4vw 18px 4vw;
    }
    .login-logo {
        width: 60px;
        height: 60px;
    }
    .site-name {
        font-size: 1.1rem;
    }
    .login-title {
        font-size: 1rem;
    }
}
.gold-btn {
    background: linear-gradient(90deg, #0048ff 60%, #0066ff 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,72,255,0.3);
}
.gold-btn:hover {
    background: linear-gradient(90deg, #0066ff 40%, #0048ff 100%) !important;
}
.red-gradient {
    background: linear-gradient(135deg, #0048ff 0%, #0066ff 100%) !important;
}
.orange-btn {
    width: 100%;
    padding: 13px 0;
    background: linear-gradient(90deg, #0048ff 60%, #0066ff 100%) !important;
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,72,255,0.3);
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 8px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.orange-btn:hover {
    background: linear-gradient(90deg, #0066ff 40%, #0048ff 100%) !important;
    box-shadow: 0 6px 24px 0 rgba(0,72,255,0.13);
}
.login-title-big {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.login-subtitle.small {
    font-size: 0.98rem;
    opacity: 0.92;
}
@media (max-width: 600px) {
    .login-title-big {
        font-size: 1.5rem;
    }
    .login-subtitle.small {
        font-size: 0.89rem;
    }
}
.login-form-modern {
    max-width: 370px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,72,255,0.1);
    padding: 24px 24px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 18px;
    animation: fadeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (max-width: 600px) {
    .login-form-modern {
        max-width: 98vw;
        padding: 12px 5vw 12px 5vw;
    }
}
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.97em;
}
.terms-label {
    color: #444;
    font-size: 0.97em;
    font-weight: 400;
    line-height: 1.4;
}
.terms-link {
    color: #0048ff;
    text-decoration: underline;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin: -24px -24px 20px -24px;
    background: linear-gradient(120deg, #0048ff 0%, #0066ff 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: white;
}
.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: white;
    transition: opacity 0.2s;
}
.close-modal-btn:hover {
    opacity: 0.8;
}
.policy-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
}
.policy-content p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
}
.policy-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 6px 0;
    color: #2c3e50;
    border-bottom: 2px solid #0048ff;
    padding-bottom: 4px;
}
.policy-content ul {
    margin: 4px 0 8px 20px;
    padding-left: 0;
}
.policy-content li {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 3px;
    color: #555;
}
.policy-content strong {
    color: #2c3e50;
    font-weight: 600;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}
.modal-btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background-color: #0048ff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 72, 255, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.modal-btn:active {
    transform: scale(0.97);
}
@media (max-width: 600px) {
    .modal-box {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
        max-height: 90vh;
    }
    .modal-header {
        padding: 12px 16px;
        margin: -16px -16px 12px -16px;
    }
    .modal-header h2 {
        font-size: 18px;
    }
    .policy-content {
        max-height: 65vh;
        font-size: 14px;
    }
    .policy-content p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    .policy-content h3 {
        font-size: 16px;
        margin: 12px 0 6px 0;
        padding-bottom: 3px;
    }
    .policy-content li {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 3px;
    }
    .policy-content ul {
        margin: 3px 0 6px 16px;
    }
    .modal-footer {
        padding: 12px 16px;
    }
    .modal-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoSwing {
  0% { transform: scale(0.7) rotate(-12deg); opacity: 0; }
  60% { transform: scale(1.1) rotate(6deg); opacity: 1; }
  80% { transform: scale(0.96) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* --- Popup Sukses Register --- */
.popup-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.popup-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.popup-content h2 {
    color: #0048ff;
    margin-bottom: 8px;
}
.popup-content p {
    color: #666;
    margin-bottom: 16px;
}
.popup-content button {
    background: linear-gradient(90deg, #0048ff 0%, #0066ff 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
@media (max-width: 480px) {
  .popup-content { padding: 12px 6px; min-width: 0; max-width: 96vw; }
  .popup-content h2 { font-size: 1em; }
  .popup-content p { font-size: 0.92em; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popupIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes popupOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.8); opacity: 0; }
}
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0048ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#registerBtn .loader {
    width: 16px;
    height: 16px;
    border-width: 2.5px;
    font-size: 0.8em;
}
#registerBtn #registerBtnLoading {
    font-size: 0.92em;
} 