/* ---------- AUTH PAGE (LOGIN & DAFTAR) ---------- */

.auth-wrapper {
    background: url('../images/bg-auth.jpg');
    background-color: var(--brand-primary);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      to bottom, 
      rgba(255, 255, 255, 0.95) 0%, 
      rgba(255, 255, 255, 0.5) 20%, 
      rgba(29, 41, 61, 0) 40%, 
      rgba(29, 41, 61, 0) 75%,
      rgba(29, 41, 61, 0.8) 90%,
      rgba(29, 41, 61, 1) 100%
  );
    z-index: 0;
}

@media (max-width: 480px) {
	.auth-wrapper {
		background-position: right -50px;
		background-size: auto 60%;
	}
	.auth-wrapper::before {
		background: linear-gradient(
			to bottom, 
			rgba(255, 255, 255, 0.95) 0%, 
			rgba(255, 255, 255, 0.5) 10%, 
			rgba(29, 41, 61, 0) 25%,
			rgba(29, 41, 61, 0.6) 35%,
			rgba(29, 41, 61, 1) 50%,
			rgba(29, 41, 61, 1) 100%
		);
	}
}

.auth-header-icon {
	background: rgba(255, 255, 255, 0.7);
	border-radius: 50px;
	padding: 5px;
	z-index: 1;
}

.auth-header-icon img {
	width: 70px;
}

.auth-container {
    background: #fff;
    width: 100%;
    max-width: 370px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    background: #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: bold;
    color: #777;
    transition: 0.3s;
    font-family: inherit;
}

.tab-btn.active {
    background: #fff;
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* Content Area */
.auth-content {
    display: none;
    padding: 30px;
}

.auth-content form {
    margin: 0;
}

.auth-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.auth-content h2 {
    margin-bottom: 25px;
    font-size: 22px;
    text-align: center;
    color: #333;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    font-size: small;
}

.form-group input[type="text"],
.form-group input[type="password"],
.glidik-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: small;
    transition: 0.3s;
    background: #fff;
}

.form-group input:focus, .glidik-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.glidik-input:disabled {
    background: #f1f3f5;
    cursor: not-allowed;
    color: #adb5bd;
}

/* Saklar Pekerja Styling */
.checkbox-group {
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed #cbd5e0;
}

.checkbox-group label {
    font-size: small;
    line-height: 1.5;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.switch-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

/* --- SECTION WILAYAH & GPS --- */

#wilayah-section {
    display: none; 
    padding: 15px; 
    border: 1px solid #eee; 
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

#wilayah-section .label-title {
    display: block;
    font-weight: bold; 
    margin-bottom: 10px;
}

.radio-profile {
    display: flex; 
    align-items: center;
    gap: 30px; 
    margin-bottom: 15px;
}

.radio-profile .item-radio {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: small;
    font-weight: 700;
}

.radio-profile .item-radio input[type="radio"] {
    margin: 0;
}

.divider {
    border: 0; 
    border-top: 1px solid #eee; 
    margin-bottom: 15px;
}

.btn-gps-manual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background-color: #e7f3ff;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: 0.3s;
}

.btn-gps-manual:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-gps-manual .material-icons-outlined {
    font-size: 18px;
}

#status-gps {
    font-size: x-small;
    text-align: center;
    color: orange; 
    margin: 5px 0;
}

/* Button Utama */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: initial;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* --- UI HELPER --- */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #999;
    user-select: none;
    font-size: 20px;
}

.toggle-password:hover {
    color: #007bff;
}

.alert-error {
    background: #fff5f5;
    color: #c0392b;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f8d7da;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustment */
@media (max-width: 480px) {
    .auth-content { padding: 20px }
    .auth-container { max-width: 100%; }
}

#container-wa-admin {
    display: none; 
    margin-top:10px;
}

.info-admin {
    background: #fff3cd; 
    padding: 12px; 
    border-radius: 8px; 
    border: 1px solid #ffeeba; 
    text-align: center;
}

.info-admin p {
    font-size: 12px; 
    color: #856404; 
    margin-bottom: 8px;
}

.info-admin a {
    background: #25d366; 
    color: white; 
    display: block; 
    padding: 10px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold;
}