* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pin-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pin-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(0, 168, 255, 0.3);
    border-radius: 15px;
    padding: 40px;
    min-width: 400px;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.pin-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 168, 255, 0.3);
}

.pin-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
}

.pin-content {
    margin-bottom: 25px;
}

.pin-info {
    text-align: center;
    color: #fff;
    font-size: 14px;
    margin-bottom: 25px;
    min-height: 40px;
    line-height: 1.5;
    transition: all 0.3s;
}

.pin-info.message-error {
    color: #ff4444;
    font-weight: 600;
    animation: shake 0.5s;
}

.pin-info.message-success {
    color: #72d952;
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.pin-input-container {
    position: relative;
    margin-bottom: 30px;
}

.pin-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 168, 255, 0.3);
    border-radius: 10px;
    color: transparent;
    font-size: 24px;
    text-align: center;
    letter-spacing: 10px;
    caret-color: #00a8ff;
    transition: border-color 0.3s;
}

.pin-input:focus {
    outline: none;
    border-color: #00a8ff;
    background: rgba(255, 255, 255, 0.15);
}

.pin-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    pointer-events: none;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 168, 255, 0.3);
    transition: all 0.3s;
}

.dot.filled {
    background: #00a8ff;
    border-color: #00a8ff;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.8);
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.key-btn {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.key-btn:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: #00a8ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.key-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.key-backspace {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.5);
}

.key-backspace:hover {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
}

.key-clear {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
}

.key-clear:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
}

.pin-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #00a8ff 0%, #0097e6 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0097e6 0%, #0088d5 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

