@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

:root {
    --warna-utama: #FE3301;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Lexend Deca", sans-serif;
    user-select: none;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--warna-utama);
    position: relative;
    overflow: hidden;
}

.mobile-container {
    width: 100%;
    max-width: 380px;
    padding: 35px 20px;
    margin: 20px;
    position: relative;
    z-index: 2;
    background: transparent;
}

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

.lock-icon-container {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.lock-icon-container:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.lock-icon-container svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 1.5;
}

h1 {
    font-size: 24px;
    font-weight: 500;
    color: white;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.pin-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pin-input {
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 16px;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: white;
    outline: none;
    border: 1.5px solid white;
    transition: all 0.2s;
}

.pin-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.pin-input.filled {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 30px 0 20px;
}

.key {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    background: white;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 400;
    color: black;
    cursor: pointer;
    transition: all 0.15s;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.key:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.key.icon-key svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 1.8;
    opacity: 0.8;
}

.key.icon-key:hover svg {
    opacity: 1;
}

#delete-btn {
    border-color: rgba(255, 100, 100, 0.2);
}

#delete-btn:hover {
    border-color: rgba(255, 100, 100, 0.5);
    background: rgba(255, 100, 100, 0.1);
}

.alert {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
}

.alert.show {
    display: block;
}
