:root {
    color-scheme: light;
    --bg-color: #ffffff;
    --text-color: #171717;
    --button-bg: #f3f4f6;
    --button-hover: #e5e7eb;
    --border-color: #e5e7eb;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg-color: #101114;
    --text-color: #f5f5f5;
    --button-bg: #24262b;
    --button-hover: #34373d;
    --border-color: #33363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, Helvetica, sans-serif;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
}

.brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.company-logo {
    display: block;
    width: min(70vw, 360px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    animation: fadeIn 0.6s ease both;
}

.website-info {
    text-align: center;
}

.website-info a {
    color: inherit;
}

/* Tombol dark mode di pojok kanan atas */
.theme-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--button-bg);
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--button-hover);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 4px;
}

.theme-toggle svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.theme-label {
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .page {
        padding: 20px;
    }

    .company-logo {
        width: min(76vw, 280px);
    }

    .theme-toggle {
        top: 16px;
        right: 16px;
        padding: 10px;
    }

    .theme-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
