* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    overflow: hidden; /* biar gak ada scroll aneh */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("karanggintung.webp") center/cover no-repeat;
    filter: blur(10px); /* tingkat blur */
    z-index: -1; /* taruh di belakang konten */
}

.main-container {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    min-height: 600px;
}

.welcome-section {
    flex: 1;
    background: linear-gradient(135deg, #f83600 0%, #f9d423 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    color: white;
    text-align: center;
    position: relative;
}

.welcome-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.app-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.app-logo a, 
.app-logo a i {
  color: #fff;   /* warna ikon jadi putih */
  text-decoration: none; /* hilangin underline link */
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.95;
}

.welcome-description {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.7;
}

.form-section {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #f83600;
    box-shadow: 0 0 0 4px rgba(248, 54, 0, 0.1);
}

.form-input:invalid {
    border-color: #ef4444;
}

.password-input {
    padding-right: 55px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    user-select: none;
}

.password-toggle:hover {
    color: #f83600;
    background: rgba(248, 54, 0, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #f83600 0%, #f9d423 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(248, 54, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.help-text {
    text-align: center;
    margin-top: 30px;
    color: #6b7280;
    font-size: 0.95rem;
}

.help-link {
    color: #f83600;
    text-decoration: none;
    font-weight: 500;
}

.help-link:hover {
    text-decoration: underline;
}

/* Loading state */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Error message styling */
.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 6px;
    display: none;
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.error + .error-message {
    display: block;
}

/* Success message */
.success-message {
    background: #10b981;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-container {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
        border-radius: 16px;
    }

    .welcome-section {
        padding: 40px 30px;
        min-height: auto;
    }

    .app-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .welcome-description {
        font-size: 0.95rem;
        max-width: none;
    }

    .form-section {
        padding: 40px 30px;
    }

    .form-title {
        font-size: 1.75rem;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .form-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 14px 16px;
    }

    .password-input {
        padding-right: 50px;
    }

    .password-toggle {
        right: 12px;
        font-size: 1.1rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 30px 20px;
    }

    .form-section {
        padding: 30px 20px;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .form-title {
        font-size: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px;
    }

    .submit-btn {
        border: 3px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
