/* Pattern Lock Styles */
.pattern-lock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 20px;
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.pattern-dot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #333;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.pattern-dot:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.pattern-dot.active {
    background: #000;
    border-color: #000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.pattern-dot.active::after {
    content: '';
    width: 25px;
    height: 25px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
}

.pattern-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pattern-message {
    margin-top: 20px;
    font-size: 16px;
    min-height: 24px;
    text-align: center;
}

.pattern-message.error {
    color: #dc3545;
}

.pattern-message.success {
    color: #198754;
}

.pattern-info {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.pattern-info i {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.reset-pattern-btn {
    margin-top: 15px;
}

.user-selector {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.user-selector select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
}

.user-selector select:focus {
    outline: none;
    border-color: #000;
}

.pattern-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .pattern-grid {
        grid-template-columns: repeat(3, 60px);
        grid-template-rows: repeat(3, 60px);
        gap: 15px;
    }
    
    .pattern-dot {
        width: 60px;
        height: 60px;
    }
}
